Jump to content

Emistry

Forum Moderator
  • Posts

    10015
  • Joined

  • Days Won

    396

Everything posted by Emistry

  1. clear(); should only be called if there are any mes(); (aka npc dialog) displayed
  2. https://rathena.org/jobs_available/
  3. if (checkquest(12345, PLAYTIME) == 2) { mes "Quest expired, removed from player."; erasequest 12345; } if you're using the quest_db to check for expired quest to remove them,.
  4. if(countitem(995) < 25 || countitem(749) < 10 || countitem(7066) < 50 || countitem(969) < 10 || countitem(4195) < 10) condition should be added inside the if (....)
  5. ....{ if (compare(strcharinfo(3), "dbroom") || compare(strcharinfo(3), "06guild")) { delitem 604,1; monster "this",-1,-1,"--ja--",-1,1,""; } else { dispbottom "This item cannot be used within this are. please use the db room!"; } },{},{} by default, script column could only support up to 1000 characters.
  6. .@total = 10; monster "prontera",0,0,"Quest Poring",1002,.@total,"NPCNAME::OnPoringKilled"; copyarray .@mob_gid, $@mobid, .@total; for (.@i = 0; .@i < .@total; .@i++) { getunitdata .@mob_gid[.@i], .@array; if (.@array[UMOB_MODE] & MD_AGGRESSIVE) setunitdata .@mob_gid[.@i], UMOB_MODE, (.@array[UMOB_MODE] - MD_AGGRESSIVE); }
  7. prontera,155,181,5 script Sample 757,{ switch(select("I want to check shop", "I'm good thank you..")) { case 1: callshop "woe_shop",4; end; case 2: mes "Thats good to hear!"; break; } close; OnInit: // Shop items: <ID>,<point cost> setarray .Shop, 4001,1, 4004,1, 4033,1, 4196,1, 4197,25, 4054,50, 4174,75, 4047,100; npcshopdelitem "woe_shop",909; for(.@i=0; .@i<getarraysize(.Shop); .@i+=2) npcshopadditem "woe_shop",.Shop[.@i],.Shop[.@i+1]; end; } - pointshop woe_shop -1,#WOEPOINTS,909:-1
  8. number doesn't need concatenation. query_sql("UPDATE `char` SET `quest_points` = `quest_points` + 10, `E` = `E` + 1 WHERE `char_id` = "+getcharid(0));
  9. // ...{ callfunc("F_CraftItem", <receipt_itemid>, <reward_itemid>, <required_item>, <required_amount>...); } // ...{ callfunc("F_CraftItem", 501, 5022, 5001, 1, 5002, 1); } make a usable with the item script above. and load the following function script function script F_CraftItem { .@getargcount = getargcount(); for (.@i = 2; .@i < .@getargcount - 1; .@i += 2) { if (countitem(getarg(.@i)) < getarg(.@i + 1, 0)) return; } delitem getarg(0), 1; for (.@i = 2; .@i < .@getargcount - 1; .@i += 2) delitem getarg(.@i), getarg(.@i + 1, 0); getitem getarg(1), 1; return; }
  10. prontera,155,181,5 script Sample 757,{ if (getcharid(3) >= 2000001 && getcharid(3) <= 2000003) { switch(select("Warp", "Change Password")) { case 1: warp "prontera", 155, 180; end; case 2: mes "Enter new password."; input .@new_password$; if (getstrlen(.@new_password$) < 5 || getstrlen(.@new_password$) > 30) { mes "Between 5 ~ 30 characters."; } else { if (.md5) { .@new_password$ = "MD5('"+.@new_password$+"')"; } else { .@new_password$ = "'"+.@new_password$+"'"; } query_sql("UPDATE `login` SET `user_pass` = "+.@new_password$+" WHERE `account_id` = "+getcharid(3)+" LIMIT 1"); } break; } close; } end; OnInit: .use_md5 = 1; waitingroom "Warper", 0; end; }
  11. OnUpdate: if(checkvending()) { dispbottom "Hourly Point disabled."; end; } ... ...
  12. autobonus "{ callfunc "F_BlackKingBar"; }",500,10000,BF_WEAPON; function script F_BlackKingBar { atcommand "@effect 123456"; // TODO: change to enlarge effect. sleep2 10000; atcommand "@effect 123456"; // TODO: repeat to end the effect. end; } i don't remember which effect allow user to growth in size. find the id and change it.
  13. donpcevent "Ev_HntRm"; donpcevent "Ev_HntRm2"; donpcevent(...) suppose to trigger an event label within a NPC script, it should be npc name + event label name, not just npc name. and event label name should start with "OnXXXXX", follow the naming convension.
  14. just use any website that allow you to convert hex color code into rgb https://color-hex.org/color/c6a518
  15. if the script are making use of gvg_castle mapflag to create the emperium test area, then you need a guild with that skill to be able to hit the emperium. otherwise you had to remove the mapflag, but this will end up spamming your map-server with warning since emperium doesn't spawn in any other maps. work around would be create a new emperium monster using new mob id and remove that guild checking.
  16. shut down server, and execute these queries. UPDATE `cart_inventory` SET `option_id0` = 0,`option_val0` = 0,`option_parm0` = 0,`option_id1` = 0,`option_val1` = 0,`option_parm1` = 0,`option_id2` = 0,`option_val2` = 0,`option_parm2` = 0,`option_id3` = 0,`option_val3` = 0,`option_parm3` = 0,`option_id4` = 0,`option_val4` = 0,`option_parm4` = 0; UPDATE `guild_storage` SET `option_id0` = 0,`option_val0` = 0,`option_parm0` = 0,`option_id1` = 0,`option_val1` = 0,`option_parm1` = 0,`option_id2` = 0,`option_val2` = 0,`option_parm2` = 0,`option_id3` = 0,`option_val3` = 0,`option_parm3` = 0,`option_id4` = 0,`option_val4` = 0,`option_parm4` = 0; UPDATE `inventory` SET `option_id0` = 0,`option_val0` = 0,`option_parm0` = 0,`option_id1` = 0,`option_val1` = 0,`option_parm1` = 0,`option_id2` = 0,`option_val2` = 0,`option_parm2` = 0,`option_id3` = 0,`option_val3` = 0,`option_parm3` = 0,`option_id4` = 0,`option_val4` = 0,`option_parm4` = 0; UPDATE `mail_attachments` SET `option_id0` = 0,`option_val0` = 0,`option_parm0` = 0,`option_id1` = 0,`option_val1` = 0,`option_parm1` = 0,`option_id2` = 0,`option_val2` = 0,`option_parm2` = 0,`option_id3` = 0,`option_val3` = 0,`option_parm3` = 0,`option_id4` = 0,`option_val4` = 0,`option_parm4` = 0; UPDATE `storage` SET `option_id0` = 0,`option_val0` = 0,`option_parm0` = 0,`option_id1` = 0,`option_val1` = 0,`option_parm1` = 0,`option_id2` = 0,`option_val2` = 0,`option_parm2` = 0,`option_id3` = 0,`option_val3` = 0,`option_parm3` = 0,`option_id4` = 0,`option_val4` = 0,`option_parm4` = 0;
  17. doc/item_bonus.txt#L419-L425 bonus bUnbreakableGarment; Garment cannot be damaged/broken by any means bonus bUnbreakableWeapon; Weapon cannot be damaged/broken by any means bonus bUnbreakableArmor; Armor cannot be damaged/broken by any means bonus bUnbreakableHelm; Helm cannot be damaged/broken by any means bonus bUnbreakableShield; Shield cannot be damaged/broken by any means bonus bUnbreakableShoes; Shoes cannot be damaged/broken by any means bonus bUnbreakable,n; Reduces the break chance of all equipped equipment by n% and db/pre-re/item_noequip.txt or db/re/item_noequip.txt
  18. just duplicate the script for each town or maps, and rename the npc variable (albertaquest) so that its unique to each other.
  19. You didnt have the required .act file in your data folder or grf.
  20. increase the inventory name letter.
  21. You can add the nightmare mapflag to the map you want. npc/mapflag/nightmare.txt
  22. What's the point of this changes? if drop rate is 0% ... it meant the monster will never drop it, as if the item drops weren't added to the monster. Your changes probably messed up with the calculation part (value divide by 0) and caused server crashed.
  23. try change your clientinfo servicetype to uae, and langtype 19
  24. you have disabled or removed the npc.... enable the NPC or remove it from the script ...
  25. 7140,Seed_Of_Life,Seed of Life,0,600,,10,,,,,,,,,,,,,{ input .@input$; atcommand "@unjail " + .@input$; },{},{} you almost did it, except the missing semi colon;
×
×
  • Create New...