Kubix
-
Content Count
150 -
Joined
-
Last visited
-
Days Won
20
Reputation Activity
-
Kubix got a reaction from Ridley in Queue BG rewrite
https://mega.nz/#!usdTjDob!LFjB51DZP_vADpXnn2MT9G82xCJXVhabILcqWzohZ5w
Full eAmod Bgs for Hercules / RagEmu by Plugin.
Converted by me.
Use standart eAmod BG NPC for this.
Tested on latest RagEmu.
Let me know if you find some errors. (tested on Windows)
-
Kubix got a reaction from DoriTos Nacho in Queue BG rewrite
Hello!
I find eAmod BGs in public and rewrite some src and scripts for Hercules.
BG:
Conquest Rush Flavius TD Register - @joinbg or NPC, leave - @leavebg
This is queue BG with multiple windows checking by Gepard ID or IP.
Items:
56 BG consumable items (using only on BG) with boxes 56 WoE consumable items (using only on WoE) with boxes Item list New script commands:
bg_reward bg_team_reveal flooritem flooritem2xy bg_getitem bg_getkafrapoints bg_single bg_create_team (added OnPCDie and OnPCLogout events.) Settings:
OnInit: // ===== Multiple Windows checking by ? // = 1 - Gepard Shield // = 2 - IP .MultipleCheck = 1; // ===== BG Colors setarray .BG_Color$[0], "0xDDA0DD", "0x7CCD7C", "0xFFA500"; // ===== BG NPC & Arena Names setarray .BG_Names$[0], "Rush", "Flavius TD", "Conquest"; setarray .BG_Arena$[0], "Rush", "Flavius_TD", "Conquest"; // ===== BG Player Amount setarray .BG_Min[0], 2, 2, 2; setarray .BG_Max[0], 30, 30, 30; // ===== BG Locations setarray .BG_Map$[0], "rush_cas04", "bat_b03", "schg_cas06"; // ===== BG X/Y Coordinates setarray .BG_GuillX[0], 270, 390, 264; setarray .BG_GuillY[0], 292, 10, 379; setarray .BG_CroixX[0], 270, 10, 295; setarray .BG_CroixY[0], 288, 290, 379; bindatcmd "joinbg", strnpcinfo(0) + "::OnJoinBG", 0, 99; bindatcmd "leavebg", strnpcinfo(0) + "::OnLeaveBG", 0, 99; // ===== Time to flood in seconds. .Flood_Time = 180; // ===== Enable debug mode? .debug = false; Sorry, not all instructions translated to English now.
Github: https://github.com/kubixservice/QueueBG
-
Kubix got a reaction from xlaws27 in Event Manager
Hey!
This is Event Manager, that helps you create new events.
I add new script command for test:D
Works like debugmes.
statusmes "message";
You can look in Return.c file, here you can find functions that helps you work with new Events.
I convert 2 standart events (RFYL & Bomb Poring).
For start event, use - @startevent <event name> For check event settings use - @checkevent <event name> For join - @joinevent Leave - @leaveevent For get prize - @event For add new event:
First goto Event_DB.c and add your event settings
Then add your event script to /Events/ folder
Also I can help you convert your scripts.
Have questions? feel free to ask
-
Kubix got a reaction from Legend in Event Manager
Hey!
This is Event Manager, that helps you create new events.
I add new script command for test:D
Works like debugmes.
statusmes "message";
You can look in Return.c file, here you can find functions that helps you work with new Events.
I convert 2 standart events (RFYL & Bomb Poring).
For start event, use - @startevent <event name> For check event settings use - @checkevent <event name> For join - @joinevent Leave - @leaveevent For get prize - @event For add new event:
First goto Event_DB.c and add your event settings
Then add your event script to /Events/ folder
Also I can help you convert your scripts.
Have questions? feel free to ask
-
Kubix got a reaction from Triedge in Queue BG rewrite
sorry, i don't have time for learn plugins now.
but i will create later.
-
Kubix got a reaction from evilpuncker in Queue BG rewrite
sorry, i don't have time for learn plugins now.
but i will create later.
-
Kubix got a reaction from caspe in Queue BG rewrite
Hello!
I find eAmod BGs in public and rewrite some src and scripts for Hercules.
BG:
Conquest Rush Flavius TD Register - @joinbg or NPC, leave - @leavebg
This is queue BG with multiple windows checking by Gepard ID or IP.
Items:
56 BG consumable items (using only on BG) with boxes 56 WoE consumable items (using only on WoE) with boxes Item list New script commands:
bg_reward bg_team_reveal flooritem flooritem2xy bg_getitem bg_getkafrapoints bg_single bg_create_team (added OnPCDie and OnPCLogout events.) Settings:
OnInit: // ===== Multiple Windows checking by ? // = 1 - Gepard Shield // = 2 - IP .MultipleCheck = 1; // ===== BG Colors setarray .BG_Color$[0], "0xDDA0DD", "0x7CCD7C", "0xFFA500"; // ===== BG NPC & Arena Names setarray .BG_Names$[0], "Rush", "Flavius TD", "Conquest"; setarray .BG_Arena$[0], "Rush", "Flavius_TD", "Conquest"; // ===== BG Player Amount setarray .BG_Min[0], 2, 2, 2; setarray .BG_Max[0], 30, 30, 30; // ===== BG Locations setarray .BG_Map$[0], "rush_cas04", "bat_b03", "schg_cas06"; // ===== BG X/Y Coordinates setarray .BG_GuillX[0], 270, 390, 264; setarray .BG_GuillY[0], 292, 10, 379; setarray .BG_CroixX[0], 270, 10, 295; setarray .BG_CroixY[0], 288, 290, 379; bindatcmd "joinbg", strnpcinfo(0) + "::OnJoinBG", 0, 99; bindatcmd "leavebg", strnpcinfo(0) + "::OnLeaveBG", 0, 99; // ===== Time to flood in seconds. .Flood_Time = 180; // ===== Enable debug mode? .debug = false; Sorry, not all instructions translated to English now.
Github: https://github.com/kubixservice/QueueBG
-
-
Kubix got a reaction from Nebraskka in Queue BG rewrite
Hello!
I find eAmod BGs in public and rewrite some src and scripts for Hercules.
BG:
Conquest Rush Flavius TD Register - @joinbg or NPC, leave - @leavebg
This is queue BG with multiple windows checking by Gepard ID or IP.
Items:
56 BG consumable items (using only on BG) with boxes 56 WoE consumable items (using only on WoE) with boxes Item list New script commands:
bg_reward bg_team_reveal flooritem flooritem2xy bg_getitem bg_getkafrapoints bg_single bg_create_team (added OnPCDie and OnPCLogout events.) Settings:
OnInit: // ===== Multiple Windows checking by ? // = 1 - Gepard Shield // = 2 - IP .MultipleCheck = 1; // ===== BG Colors setarray .BG_Color$[0], "0xDDA0DD", "0x7CCD7C", "0xFFA500"; // ===== BG NPC & Arena Names setarray .BG_Names$[0], "Rush", "Flavius TD", "Conquest"; setarray .BG_Arena$[0], "Rush", "Flavius_TD", "Conquest"; // ===== BG Player Amount setarray .BG_Min[0], 2, 2, 2; setarray .BG_Max[0], 30, 30, 30; // ===== BG Locations setarray .BG_Map$[0], "rush_cas04", "bat_b03", "schg_cas06"; // ===== BG X/Y Coordinates setarray .BG_GuillX[0], 270, 390, 264; setarray .BG_GuillY[0], 292, 10, 379; setarray .BG_CroixX[0], 270, 10, 295; setarray .BG_CroixY[0], 288, 290, 379; bindatcmd "joinbg", strnpcinfo(0) + "::OnJoinBG", 0, 99; bindatcmd "leavebg", strnpcinfo(0) + "::OnLeaveBG", 0, 99; // ===== Time to flood in seconds. .Flood_Time = 180; // ===== Enable debug mode? .debug = false; Sorry, not all instructions translated to English now.
Github: https://github.com/kubixservice/QueueBG
-
Kubix got a reaction from bWolfie in Queue BG rewrite
Hello!
I find eAmod BGs in public and rewrite some src and scripts for Hercules.
BG:
Conquest Rush Flavius TD Register - @joinbg or NPC, leave - @leavebg
This is queue BG with multiple windows checking by Gepard ID or IP.
Items:
56 BG consumable items (using only on BG) with boxes 56 WoE consumable items (using only on WoE) with boxes Item list New script commands:
bg_reward bg_team_reveal flooritem flooritem2xy bg_getitem bg_getkafrapoints bg_single bg_create_team (added OnPCDie and OnPCLogout events.) Settings:
OnInit: // ===== Multiple Windows checking by ? // = 1 - Gepard Shield // = 2 - IP .MultipleCheck = 1; // ===== BG Colors setarray .BG_Color$[0], "0xDDA0DD", "0x7CCD7C", "0xFFA500"; // ===== BG NPC & Arena Names setarray .BG_Names$[0], "Rush", "Flavius TD", "Conquest"; setarray .BG_Arena$[0], "Rush", "Flavius_TD", "Conquest"; // ===== BG Player Amount setarray .BG_Min[0], 2, 2, 2; setarray .BG_Max[0], 30, 30, 30; // ===== BG Locations setarray .BG_Map$[0], "rush_cas04", "bat_b03", "schg_cas06"; // ===== BG X/Y Coordinates setarray .BG_GuillX[0], 270, 390, 264; setarray .BG_GuillY[0], 292, 10, 379; setarray .BG_CroixX[0], 270, 10, 295; setarray .BG_CroixY[0], 288, 290, 379; bindatcmd "joinbg", strnpcinfo(0) + "::OnJoinBG", 0, 99; bindatcmd "leavebg", strnpcinfo(0) + "::OnLeaveBG", 0, 99; // ===== Time to flood in seconds. .Flood_Time = 180; // ===== Enable debug mode? .debug = false; Sorry, not all instructions translated to English now.
Github: https://github.com/kubixservice/QueueBG
-
Kubix got a reaction from kerbiii in how to check
getguildmember getcharid(2), 1;
getguildmember getcharid(2), 2;
for( .i = 0; .i < getarraysize($@guildmemberaid); .i ++ )
if( isloggedin( $@guildmemberaid[.i], $@guildmembercid[.i] ) )
.Online_Char ++;
mes "There is " + .Online_Char + " characters online on your guild.";
close;
query_sql( "SELECT guild_lv FROM guild WHERE guild_id = " + getcharid(2), .GLV );
mes "Guild Level : " + .GLV;
close;
-
Kubix reacted to Aeromesi in [Custom Instance] Ice Titans Attack El Dicastes 2021 NEW!
View File [Custom Instance] Ice Titans Attack El Dicastes 2021 NEW!
[Custom Instance]
Ice Titans Attack El Dicastes
Story Line:
The Ice Titans have invaded Dicastes and put the Citizens into an eternal frozen slumber, you must finish off all the Ice Titans as well as save all the citizens. If you die you LOSE!
Please read the Change-Log and view the Screenshots to get a general idea of the instance! Also so you know what to edit for rewards and of the such.
Just download, carefully read the .txt files and enjoy! If you ever have problems installing, you can PM me on Hercules or add my Discord: Aeromesi#0293
Hope you enjoy Hercules.
Submitter Aeromesi Submitted 04/08/16 Category Events & Games
-
Kubix got a reaction from Alexandria in Queue BG rewrite
Hello!
I find eAmod BGs in public and rewrite some src and scripts for Hercules.
BG:
Conquest Rush Flavius TD Register - @joinbg or NPC, leave - @leavebg
This is queue BG with multiple windows checking by Gepard ID or IP.
Items:
56 BG consumable items (using only on BG) with boxes 56 WoE consumable items (using only on WoE) with boxes Item list New script commands:
bg_reward bg_team_reveal flooritem flooritem2xy bg_getitem bg_getkafrapoints bg_single bg_create_team (added OnPCDie and OnPCLogout events.) Settings:
OnInit: // ===== Multiple Windows checking by ? // = 1 - Gepard Shield // = 2 - IP .MultipleCheck = 1; // ===== BG Colors setarray .BG_Color$[0], "0xDDA0DD", "0x7CCD7C", "0xFFA500"; // ===== BG NPC & Arena Names setarray .BG_Names$[0], "Rush", "Flavius TD", "Conquest"; setarray .BG_Arena$[0], "Rush", "Flavius_TD", "Conquest"; // ===== BG Player Amount setarray .BG_Min[0], 2, 2, 2; setarray .BG_Max[0], 30, 30, 30; // ===== BG Locations setarray .BG_Map$[0], "rush_cas04", "bat_b03", "schg_cas06"; // ===== BG X/Y Coordinates setarray .BG_GuillX[0], 270, 390, 264; setarray .BG_GuillY[0], 292, 10, 379; setarray .BG_CroixX[0], 270, 10, 295; setarray .BG_CroixY[0], 288, 290, 379; bindatcmd "joinbg", strnpcinfo(0) + "::OnJoinBG", 0, 99; bindatcmd "leavebg", strnpcinfo(0) + "::OnLeaveBG", 0, 99; // ===== Time to flood in seconds. .Flood_Time = 180; // ===== Enable debug mode? .debug = false; Sorry, not all instructions translated to English now.
Github: https://github.com/kubixservice/QueueBG
-
Kubix got a reaction from mleo1 in Queue BG rewrite
Hello!
I find eAmod BGs in public and rewrite some src and scripts for Hercules.
BG:
Conquest Rush Flavius TD Register - @joinbg or NPC, leave - @leavebg
This is queue BG with multiple windows checking by Gepard ID or IP.
Items:
56 BG consumable items (using only on BG) with boxes 56 WoE consumable items (using only on WoE) with boxes Item list New script commands:
bg_reward bg_team_reveal flooritem flooritem2xy bg_getitem bg_getkafrapoints bg_single bg_create_team (added OnPCDie and OnPCLogout events.) Settings:
OnInit: // ===== Multiple Windows checking by ? // = 1 - Gepard Shield // = 2 - IP .MultipleCheck = 1; // ===== BG Colors setarray .BG_Color$[0], "0xDDA0DD", "0x7CCD7C", "0xFFA500"; // ===== BG NPC & Arena Names setarray .BG_Names$[0], "Rush", "Flavius TD", "Conquest"; setarray .BG_Arena$[0], "Rush", "Flavius_TD", "Conquest"; // ===== BG Player Amount setarray .BG_Min[0], 2, 2, 2; setarray .BG_Max[0], 30, 30, 30; // ===== BG Locations setarray .BG_Map$[0], "rush_cas04", "bat_b03", "schg_cas06"; // ===== BG X/Y Coordinates setarray .BG_GuillX[0], 270, 390, 264; setarray .BG_GuillY[0], 292, 10, 379; setarray .BG_CroixX[0], 270, 10, 295; setarray .BG_CroixY[0], 288, 290, 379; bindatcmd "joinbg", strnpcinfo(0) + "::OnJoinBG", 0, 99; bindatcmd "leavebg", strnpcinfo(0) + "::OnLeaveBG", 0, 99; // ===== Time to flood in seconds. .Flood_Time = 180; // ===== Enable debug mode? .debug = false; Sorry, not all instructions translated to English now.
Github: https://github.com/kubixservice/QueueBG
-
Kubix got a reaction from Easycore in Queue BG rewrite
Hello!
I find eAmod BGs in public and rewrite some src and scripts for Hercules.
BG:
Conquest Rush Flavius TD Register - @joinbg or NPC, leave - @leavebg
This is queue BG with multiple windows checking by Gepard ID or IP.
Items:
56 BG consumable items (using only on BG) with boxes 56 WoE consumable items (using only on WoE) with boxes Item list New script commands:
bg_reward bg_team_reveal flooritem flooritem2xy bg_getitem bg_getkafrapoints bg_single bg_create_team (added OnPCDie and OnPCLogout events.) Settings:
OnInit: // ===== Multiple Windows checking by ? // = 1 - Gepard Shield // = 2 - IP .MultipleCheck = 1; // ===== BG Colors setarray .BG_Color$[0], "0xDDA0DD", "0x7CCD7C", "0xFFA500"; // ===== BG NPC & Arena Names setarray .BG_Names$[0], "Rush", "Flavius TD", "Conquest"; setarray .BG_Arena$[0], "Rush", "Flavius_TD", "Conquest"; // ===== BG Player Amount setarray .BG_Min[0], 2, 2, 2; setarray .BG_Max[0], 30, 30, 30; // ===== BG Locations setarray .BG_Map$[0], "rush_cas04", "bat_b03", "schg_cas06"; // ===== BG X/Y Coordinates setarray .BG_GuillX[0], 270, 390, 264; setarray .BG_GuillY[0], 292, 10, 379; setarray .BG_CroixX[0], 270, 10, 295; setarray .BG_CroixY[0], 288, 290, 379; bindatcmd "joinbg", strnpcinfo(0) + "::OnJoinBG", 0, 99; bindatcmd "leavebg", strnpcinfo(0) + "::OnLeaveBG", 0, 99; // ===== Time to flood in seconds. .Flood_Time = 180; // ===== Enable debug mode? .debug = false; Sorry, not all instructions translated to English now.
Github: https://github.com/kubixservice/QueueBG
-
Kubix got a reaction from maczekiel in Hugin's Craftsman NPC Help
Try this.
glast_01,210,270,0 script Hugin's Craftsman 726,{ disable_items; if (MaxWeight - Weight < 1000) { mes "Your bag is too heavy. Reduce some weight and come back."; close; } mes "[Hugin's Craftsman]"; mes "That Magic Master always says that enchanting Temporal Boots is the best. But, I think quite different."; next; mes "[Hugin's Craftsman]"; mes "I think putting a slot into the item would be the best. Even with some risk of failing."; next; mes "[Hugin's Craftsman]"; mes "Bring me ^0000FF5 Temporal Crystals^000000, and I will try to put a slot into your advanced Temporal Boots. But, it's possible to ^FF0000fail and break the item^000000. Is that ok?"; next; if (select("Cancel","Take the risk and try to add a slot") == 1) { mes "[Hugin's Craftsman]"; mes "Ok, come back anytime you want."; close; } set .@part,EQI_SHOES; if (!getequipisequiped(.@part)) { mes "[Hugin's Craftsman]"; mes "Are you sure you are wearing the item?"; close; } set .@equip_id,getequipid(.@part); switch (.@equip_id) { case 22000: //Temporal_Str_Boots .@get_id = 22006,1; //Temporal_Str_Boots_ break; case 22001: //Temporal_Int_Boots .@get_id = 22009; //Temporal_Int_Boots_ break; case 22002: //Temporal_Agi_Boots .@get_id = 22010; //Temporal_Agi_Boots_ break; case 22003: //Temporal_Vit_Boots .@get_id = 22007; //Temporal_Vit_Boots_ break; case 22004: //Temporal_Dex_Boots .@get_id = 22008; //Temporal_Dex_Boots_ break; case 22005: //Temporal_Luk_Boots .@get_id = 22011; //Temporal_Luk_Boots_ break; default: mes "[Hugin's Craftsman]"; mes "This is not it! We need ^0000FFAdvanced Temporal Boots^000000 items! The item ^0000FFwith a stat effect and without a slot^000000!"; close; } for( .@i = 0; .@i < 4; .@i ++ ) setd "Craft_Card" + .@i, getequipcardid( .@equip_id, .@i ); mes "[Hugin's Craftsman]"; mes "And ^FF0000all enchant or refine rates will be lost if you fail this.^000000"; mes "Still want to risk it?"; next; if (select("Cancel","I am ok with it!") == 1) { mes "[Hugin's Craftsman]"; mes "Ok, come back anytime you want."; close; } mes "[Hugin's Craftsman]"; mes "Once again, ^FF0000That Magic Master won't enchant any item with a slot.^000000"; mes "Still want to proceed?"; next; if (select("Cancel","I understand. Try to slot it.") == 1) { mes "[Hugin's Craftsman]"; mes "Ok, come back anytime you want."; close; } if (countitem(6607) < 5) { mes "[Hugin's Craftsman]"; mes "You must bring ^0000FF5 Temporal Crystal items^000000. Nothing is free you know..."; close; } if (rand(1,100) <= 80) { //Custom rates mes "[Hugin's Craftsman]"; mes "Arrggg, we failed. Better luck next time."; specialeffect2 EF_PHARMACY_FAIL; delitem 6607,5; //Temporal_Crystal delequip .@part; close; } mes "[Hugin's Craftsman]"; //Custom text mes "Yuhuu~ we succeed. Here you are..."; mes "A slot has been added to your advanced Temporal Boots."; mes "Thank you for believing in me."; specialeffect2 EF_PHARMACY_OK; delitem 6607,5; //Temporal_Crystal delequip .@part; getitem2 .@get_id, 1, 1, 0, 0, getd( "Craft_Card0" ), getd( "Craft_Card1" ), getd( "Craft_Card2" ), getd( "Craft_Card3" ); close; } -
Kubix reacted to 4144 in Queue BG rewrite
Sample plugin here https://github.com/HerculesWS/Hercules/blob/master/src/plugins/sample.c
In same dir exists some other plugins
-
Kubix got a reaction from Edgar in Queue BG rewrite
Hello!
I find eAmod BGs in public and rewrite some src and scripts for Hercules.
BG:
Conquest Rush Flavius TD Register - @joinbg or NPC, leave - @leavebg
This is queue BG with multiple windows checking by Gepard ID or IP.
Items:
56 BG consumable items (using only on BG) with boxes 56 WoE consumable items (using only on WoE) with boxes Item list New script commands:
bg_reward bg_team_reveal flooritem flooritem2xy bg_getitem bg_getkafrapoints bg_single bg_create_team (added OnPCDie and OnPCLogout events.) Settings:
OnInit: // ===== Multiple Windows checking by ? // = 1 - Gepard Shield // = 2 - IP .MultipleCheck = 1; // ===== BG Colors setarray .BG_Color$[0], "0xDDA0DD", "0x7CCD7C", "0xFFA500"; // ===== BG NPC & Arena Names setarray .BG_Names$[0], "Rush", "Flavius TD", "Conquest"; setarray .BG_Arena$[0], "Rush", "Flavius_TD", "Conquest"; // ===== BG Player Amount setarray .BG_Min[0], 2, 2, 2; setarray .BG_Max[0], 30, 30, 30; // ===== BG Locations setarray .BG_Map$[0], "rush_cas04", "bat_b03", "schg_cas06"; // ===== BG X/Y Coordinates setarray .BG_GuillX[0], 270, 390, 264; setarray .BG_GuillY[0], 292, 10, 379; setarray .BG_CroixX[0], 270, 10, 295; setarray .BG_CroixY[0], 288, 290, 379; bindatcmd "joinbg", strnpcinfo(0) + "::OnJoinBG", 0, 99; bindatcmd "leavebg", strnpcinfo(0) + "::OnLeaveBG", 0, 99; // ===== Time to flood in seconds. .Flood_Time = 180; // ===== Enable debug mode? .debug = false; Sorry, not all instructions translated to English now.
Github: https://github.com/kubixservice/QueueBG
-
Kubix reacted to Functor in @partybuff / @spb
Also we can see this bug, when someone enters to the party. It is caused by sending of 0x1E9 packet, which adds one specific party member to the list on the client side. To fix bug of this plugin, we can disable sending of this packet. Because in any case server always sends full list of party members in 0xFB packet.
before:
HPExport void plugin_init (void) {
add:
void clif_party_member_info_overload(struct party_data* p, struct map_session_data* sd) { return; }
after:
HPExport void plugin_init (void) {
add:
clif->party_member_info = &clif_party_member_info_overload; -
Kubix got a reaction from Lamex in Custom Armor enchanter
setarray .equipid[0], 1599; <= items that can be enchanted setarray .enchant[0], 9999; <= enchant item id setarray .itemsid[0], 909; <= items that need for enchant setarray .amounts[0], 1; .@menu$ = ""; for( .i = 0; .i < getarraysize( .equipid ); .i ++ ) { .@menu$ += ( .i + 1 ) + ". " + getitemname(.equipid[.i]; .@menu$ += ":"; } @select = select(.@menu$) - 1; if( !isequipped( .equipid[@select] ) ) { mes "equip the item first."; close; } @error = 0; for( .a = 0; .a < getarraysize( .itemsid ); .a ++ ) { if( countitem( .itemsid[.a] ) < .amounts[.a] ) close; // no items delitem .itemsid[.a], .amounts[.a]; } delitem .equipid[@select], 1; getitem2 .equipid[@select], 1, 1, 0, 1, 0, 0, 0, .enchant[0]; close; this is sample.
need a menu for select the enchant orbs. But you can use this code for create your script
(not tested)
-
-
Kubix got a reaction from Lamex in viewpoint to partymembers when die
- script OnPCDieViewMap -1,{ OnPCDieEvent: if( getcharid(1) ) { getmapxy( .map$, .x, .y, UNITTYPE_PC ); getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; copyarray .@paid[0], $@partymemberaid[0], $@partymembercount; copyarray .@caid[0], $@partymembercid[0], $@partymembercount; for( .@i = 0; .@i < getarraysize(.@paid); .@i ++ ) { if( isloggedin( .@paid[.@i], .@caid[.@i] ) ) { attachrid( .@paid[.@i] ); .@id = rand(500); if( strcharinfo(3) == .map$ ) viewpoint 0, .x, .y, .@id, 0xFF0000; detachrid; } } } end; } Preview:
https://gyazo.com/1e8aaaa304e13d9f9745264c9a0def08
https://gyazo.com/77928f04c9f80b8313200452bcfff33d
-
Kubix got a reaction from evilpuncker in viewpoint to partymembers when die
- script OnPCDieViewMap -1,{ OnPCDieEvent: if( getcharid(1) ) { getmapxy( .map$, .x, .y, UNITTYPE_PC ); getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; copyarray .@paid[0], $@partymemberaid[0], $@partymembercount; copyarray .@caid[0], $@partymembercid[0], $@partymembercount; for( .@i = 0; .@i < getarraysize(.@paid); .@i ++ ) { if( isloggedin( .@paid[.@i], .@caid[.@i] ) ) { attachrid( .@paid[.@i] ); .@id = rand(500); if( strcharinfo(3) == .map$ ) viewpoint 0, .x, .y, .@id, 0xFF0000; detachrid; } } } end; } Preview:
https://gyazo.com/1e8aaaa304e13d9f9745264c9a0def08
https://gyazo.com/77928f04c9f80b8313200452bcfff33d
-
Kubix got a reaction from almarket23 in Script activated once player warped to a map
header: { OnPCLoadMapEvent: if( strcharinfo(3) == "prontera" ) announce "Hello, " + strcharinfo(0), bc_self; // self-announce end; } prontera[tab]mapflag[tab]loadevent
OnPCLoadMapEvent: This special label will trigger once a player steps in a map marked with the 'loadevent' mapflag and attach its RID. The fact that this label requires a mapflag for it to work is because, otherwise, it'd be server-wide and trigger every time a player would change maps. Imagine the server load with 1,000 players (oh the pain...) Only the special labels which are not associated with any script command are listed here. There are other kinds of labels which may be triggered in a similar manner, but they are described with their associated commands. -
Kubix got a reaction from Skyline in Followers: World of Warcraft system
Hello, community
I wanna show you my release - Followers like in World of Warcraft (maybe XD)
I start write this in august 2015 o.O
Current version: 2.0.1
Languages: Russian/English
FluxCP addon: included
Some info: (sorry for my English)
Based on SQL and dynamic variables.
4 classes: Warrior, Healer, Mage, Assassin
Max. Follower level: 7
Followers have a item level.
Mission types:
Standart- rewards taken from SQL
Random- rewards taken from arrays for each follower level
Special (if variable random_reward = 1) you can set your special item ID for each mission, if random reward is ON.
Chance for complete:
You can set your standart chance for complete mission (standart: 25%)
Each mission have a requirement for item level (if you want)
So, if mission req. item level = 50 and Follower item level = 100 chance for complete will be like 60% (if 25 = standart)
But if Follower item level = 0 and mission item level = 50 chance will be (5%~)
How to create a new Follower from game?
You can create a NPC that gives a Followers, or new items for each Follower
For create just use a function:
callfunc("Companion_Create", unique_id from 'companion_list' table in SQL); I have a companion in DB:
Name: Mellisandra
UniqueID: 1
Class: 2 (healer)
so, i create a simple script:
map,x,y,face[tab]script[tab]Simple Follower[tab]sprite,{ mes "Hello! I can create Follower for you!"; next; if(select("yes, please!:No, thx") == 2) close; callfunc("Companion_Create", 1); close; }
this script will give a player Follower with ID 1 (Mellisandra)
Guys, i'm really sorry for my english, I wanted to tell you all information, but I can not express the idea
Maybe someone will use this and create guide for you.
I'll try to answer your questions.
Special thanks for: Google Translate.
Good luck:)
Script: http://pastebin.com/5cMPGsMh
SQL: http://pastebin.com/465XdhBr
Time function: http://upaste.me/aba022682946e3a7d
Together (with FluxCP addons): Companions_ENGLISH.rar
Preview addons:
http://kubix-service.ru/?module=followers&action=list_all
http://kubix-service.ru/?module=missions&action=list
Preview video (russian interface, sorry):
https://www.youtube.com/watch?v=j3u4dIfKVs0&feature=youtu.be
https://www.youtube.com/watch?v=cdGGQ50VmhY&feature=youtu.be
Original post from Russian eA-Support: http://ea-support.ws/index.php?/topic/3467-s-sistema-soratnikov-world-of-warcraft/