Jump to content

Capuche

Developer
  • Posts

    2407
  • Joined

  • Last visited

  • Days Won

    51

Everything posted by Capuche

  1. @Poring King I'm a sensitive person and your edition just hurts me. Don't do this again. You have initialized the variable everytime the player interacts with the npc, breaking the interaction limit
  2. 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
  3. Capuche

    Party Recall

    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; }
  4. 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
  5. @AnnieRuru I believe that the player can't finish the quest if the owner raise .questsize value
  6. 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.
  7. https://github.com/rathena/rathena/blob/master/npc/re/merchants/hd_refiner.txt
  8. 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.
  9. * There is currently no script command to retrieve the current target of the unit. * <target id> is the GID of the target.
  10. Capuche

    Cards A-Z

    Please use the updated script that can be found in the main repo.
  11. 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.
  12. Please open an issue on github, as reminder and in case someone have more infos.
  13. for(set .@i,6; .@i < getargcount() - 6 && !.@C; set .@i, .@i + 2 ){ if ((getarg(.@i + 1,0) + MineMaster * (.@i - 5) / 7) > rand(10000)) { getitem getarg(.@i,7049),1; set .@C,1; } }
  14. 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 .@tmp_item; if (getitemname(.@tmp_item) == "null") { mes "Invalid item ID " + .@tmp_item; continue; } mes "Input Amount :"; input .@tmp_amount; if (.@tmp_amount == 0) { mes "Invalid amount."; continue; } .@item_id[ .@size ] = .@tmp_item; .@amount[ .@size ] = .@tmp_amount; .@size++; mes "Item list :"; for ( .@i = 0; .@i < .@size; .@i++ ) mes (.@i+1) + "/ x" + .@amount[.@i] + " ^ff0000" + getitemname(.@item_id[.@i]) + "^000000"; } }
  15. The rates should be in descending order. Invert your item 1 and 2.
  16. 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
  17. emotion .@dice, playerattached(); ?
  18. 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.
  19. I don't knwo what you want to do however npcshopadditem "quest_shop",$V_item1[.@i],$V_custo1[.@i]; // $V_item1[.@i] and $V_custo1[.@i] 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)){
  20. 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);
  21. May you provide your npc script here?
  22. We didn't change duplicate command. Check your script.
  23. 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 .@dado+57,0,"Gm Dice"; is now : emotion (.@dado+57), getnpcid(0,"Gm Dice"); You can run https://github.com/rathena/rathena/blob/master/tools/convert_emotions.py to convert your script.
×
×
  • Create New...