-
Posts
2,407 -
Joined
-
Last visited
-
Days Won
49
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Posts posted by Capuche
-
-
function script F_PartyReCall { if (getcharid(1) > 0 && getpartyleader(getcharid(1),2) == getcharid(0)) warpparty "Leader",0,0,getcharid(1),strcharinfo(3),2,2; return; } -
getunitdata is used to get special data related to the unit, including mapid x and y.
*getunitdata <GID>,<arrayname>; ... UMOB_MAPID UMOB_X UMOB_Y
-
@AnnieRuru I believe that the player can't finish the quest if the owner raise .questsize value

-
Since https://github.com/rathena/rathena/commit/a8e4c83ef10dc4ccde1bd6e6f40b296d590d9b80 the script ends if there is no unit attached for sleep2 - no need to check if the player is attached.
-
-
Client date?
-
https://github.com/rathena/rathena/commit/6510d41
committed on 2 Oct 2016
You should consider to update your repo using git - we don't support svn anymore.
-
1
-
-
* There is currently no script command to retrieve the current target of the unit.
* <target id> is the GID of the target.
-
2
-
-
Please use the updated script that can be found in the main repo.
-
I don't see effective way to do that by NPC script. You need to change the behaviour of aggressive monster moving through unitwalk in src. This modification is required for wave mode instance so it will be implemented one day or another anyway.
-
1
-
-
Please open an issue on github, as reminder and in case someone have more infos.
-
for(set [email protected],6; [email protected] < getargcount() - 6 && [email protected]; set [email protected], [email protected] + 2 ){ if ((getarg([email protected] + 1,0) + MineMaster * ([email protected] - 5) / 7) > rand(10000)) { getitem getarg([email protected],7049),1; set [email protected],1; } } -
1 hour ago, skymia said:
how to make only @storage command will disable?
because @time is also disable they dont check the time when will the woe will end
Try mapflag notrade
-
izlude,128,124,0 script dumb menu A 4_F_01,{ mes "what do you want to do"; while (true) { next; if (select( "^FF0000Add an item^000000", "Close" ) == 2) end; mes "Input Item ID :"; input [email protected]_item; if (getitemname([email protected]_item) == "null") { mes "Invalid item ID " + [email protected]_item; continue; } mes "Input Amount :"; input [email protected]_amount; if ([email protected]_amount == 0) { mes "Invalid amount."; continue; } [email protected]_id[ [email protected] ] = [email protected]_item; [email protected][ [email protected] ] = [email protected]_amount; [email protected]++; mes "Item list :"; for ( [email protected] = 0; [email protected] < [email protected]; [email protected]++ ) mes ([email protected]+1) + "/ x" + [email protected][[email protected]] + " ^ff0000" + getitemname([email protected]_id[[email protected]]) + "^000000"; } }-
2
-
-
The rates should be in descending order. Invert your item 1 and 2.
-
Setting a variable is basic in NPC script. I can't help you if you don't help yourself.
https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L1208
-
1
-
-
emotion [email protected], playerattached();?
-
1
-
-
- You have x2 lhz_dun03 map in your list.
- Note that some MVP already have a label (MVP in lhz_dun03 and lhz_dun04 for example).
OnNPCKillEvent: This special label triggers when a player kills a monster without label. -
I don't knwo what you want to do however
npcshopadditem "quest_shop",$V_item1[[email protected]],$V_custo1[[email protected]]; // $V_item1[[email protected]] and $V_custo1[[email protected]] undefined//* all assertions shoud be true -> use the logical operator AND //* the amount of item should be >= if((countitem(7539)== 10) || (countitem(7063)==100) || (countitem(982)==2)){ -
Call the corresponding shop ID in your npcs
// Shop NPCs -- supplying no argument displays entire menu. // callfunc "qshop"{,<shop ID>{,<shop ID>{,...}}}; //============================================================ prontera,164,167,4 script Quest Gears#h1 998,{ callfunc "qshop2",1; } // call shop 1 prontera,164,168,4 script Quest Gears#h2 998,{ callfunc "qshop2",2; } // call shop 2
// ----------------------------------------------------------- // Shop IDs -- to add shops, copy dummy data at bottom of file. // setarray .Shops$[1],"<Shop 1>","<Shop 2>"{,...}; // ----------------------------------------------------------- setarray .Shops$[1],"Headgears","Midgears","Lowergears","Accessory"; // ----------------------------------------------------------- // Quest items -- do NOT use a reward item more than once! // Add(<shop ID>,<reward ID>,<reward amount>, // <Zeny cost>,<point cost>, // <required item ID>,<required item amount>{,...}); // ----------------------------------------------------------- Add(1,26037,1,0,0,1022,300,1068,300,7043,300,969,3000); // shop 1 Add(1,26036,1,0,0,952,300,1037,300,950,300,969,3000); Add(1,26053,1,0,0,951,300,922,300,954,300,969,3000); Add(1,26082,1,0,0,711,300,7006,300,951,300,969,3000); Add(1,26028,1,0,0,7110,300,7097,300,952,300,969,3000); Add(1,5374,1,0,0,1039,300,1044,300,7507,300,969,3000); Add(1,5138,1,0,0,1095,300,7567,300,921,300,969,3000); sleep 10; Add(2,26181,1,0,0,7293,3,7227,50,4140,50,969,1500); // shop 2 Add(2,26095,1,0,0,7291,3,7227,50,4140,50,969,1500); Add(2,26057,1,0,0,7292,3,7227,50,4140,50,969,1500);
-
1
-
-
May you provide your npc script here?
-
1
-
-
We didn't change duplicate command. Check your script.
-
1
-
-
https://github.com/rathena/rathena/commit/ea88ea50546fd140bda875056f83a60b6b0bef96
This PR change the emoticons constant name to match emoticonlist from client side. Note: the previous emoticons names are now deprecated. Additionnally emotion and unitemote scripts commands are being merged together to the new format -> emotion <emotion number>{,<target>}; Where target use the target Game ID (GID) of the unit (npc, pet, character etc..). * unitemote is now deprecated.
emotion [email protected]+57,0,"Gm Dice";is now :
emotion ([email protected]+57), getnpcid(0,"Gm Dice");You can run https://github.com/rathena/rathena/blob/master/tools/convert_emotions.py to convert your script.
-
1
-
1
-
-
Wrong section. Moved to "Database Support".
Enable Skill in Map
in Scripting Support
Posted
https://github.com/rathena/rathena/blob/master/doc/mapflags.txt#L167
Add the skills in db/(pre-)re/skill_nocast_db.txt and set the mapflag restricted instead of noskill