Jump to content

Emistry

Forum Moderator
  • Posts

    10018
  • Joined

  • Days Won

    409

Everything posted by Emistry

  1. @Keyworld.. Owh..thank for pointing that... somehow i have forgotten / didnt think about this scenario... @Dastgir oh..no worry on this... because i got this.. OnAtCommand: if( getgmlevel() >= .GMLevel ){; but yeah..your method would be better ...i forgotten the bindatcmd have Account Level Parameter..xD and...there is 1 thing i forgot....there is SQL to do this also... hahaha ~
  2. if you want... you can try this... http://pastebin.com/raw.php?i=SR3ucpeN
  3. just add it inside the script .... or add as another script refer Adding_a_Script
  4. try this http://pastebin.com/raw.php?i=3PrnkSNL trunk/db/re/item_db.txt 2236,Santa's_Hat,Santa Hat,5,20,,100,,1,,0,0xFFFFFFFF,7,2,256,,0,1,20,{ bonus bMdef,1; bonus bLuk,1; },{},{ doevent "Sample#xmas::OnKick"; }
  5. you can try this.. https://rathena.org/board/index.php?/files/file/2505-%7B?%7D/
  6. erm...i dont think it's a good way to do it using npc script if you want to limit all player with 3 skull.. because it will required to create / save alot data using variable for each player he/she killed .. imagine if your server everyday having 100 player killing each other...about 20,000 ( AID + Count ) variable is needed ...O.O anyway you can try this.. http://pastebin.com/raw.php?i=1pBA4HBM by default only limited to 3 players.... Edit : LOL...again...Annie is faster >.<
  7. 1st if( isequipped( 4128 ) ) end; refer isequipped 2nd how you want the timer being attach ? and what is the purpose to add the timer ? more elaboraton please... if base on what you said in above situation...we gonna make a script that loop through all player in server and attach them to give the timer.. 3rd use setmapflag then give proper mapflag for weathers.. 4th trunk/db/re/skill_nocast_db.txt and give a correspond mapflag to each map you specified..
  8. get yourself a translated data folder http://subversion.assembla.com/svn/ClientSide/Translation_Project/data/ for the inventory tab issue..refer this Favorite_tab
  9. query_sql("SELECT `points` FROM `cp_v4p_voters` WHERE account_id="+.@account_id+" LIMIT 1",.@points); then it's stored in.. .@points there is 1 way you can do it... OnPCLoginEvent: query_sql("SELECT `points` FROM `cp_v4p_voters` WHERE account_id="+getcharid(3)+" LIMIT 1",.@points); #Vote_Points += .@points; query_sql("UPDATE `cp_v4p_voters` SET `points`= 0 WHERE account_id="+getcharid(3)+" LIMIT 1" ); end; and the vote point is stored inside #Vote_Points
  10. yes edit here. // Currency [ Item ID / Variable Name ] set @Currency$,"#CASHPOINTS";
  11. OnInit: while( 1 ){ killmonsterall "prontera"; sleep ( 15 * 60000 ); } end;
  12. here... trunk/npc/re/mobs/ and refer this Permanent_Monster_Spawn
  13. erm.. i think mapcache.dat isnt the only file required during adding a new map...some other file still have to reload ..like.. trunk/conf/maps_athena.conf trunk/db/map_index.txt and if i was right...these file are not run together with map-server ? not sure.. >.<
  14. try this ? http://pastebin.com/raw.php?i=JvgpBfzs Fixed missing getitem , added item amount. http://pastebin.com/raw.php?i=LbGztCH5
  15. @Annie thx for remind to remove the candy before they enter the event... for the event .... there might be a small possibilities that several players might have same amount of candy when they "win" the event so i just loop through to find the highest amount of candy holder ... and the loop again and give reward for those player who gained most candy than others.... the second suggestion that store the winner that annie suggest only work for 1 winner...it would be unfair to give only 1 player reward while there is more than 1 winner... or maybe annie was refer another method for this ? currently didnt know if there is any other better method .... http://pastebin.com/raw.php?i=KRpvRfNE
  16. monster "<map>",<x>,<y>,"<NAME>",<mobID>,<amount>,"NPCNAME::OnLabel"; ..... .... ...... OnLabel: enablenpc "npcname"; end; refer monster / disablenpc / enablenpc
  17. @Orange.. i think you have edited the script .... my script doesnt use globalmes to display message .. ( i think you are using this ... ) my script wont include NPC name during broadcast the messages if not...the elaborate more..or provide your script here to debug or etc ..... there is no way we can reproduce your problem with just an image...... we dont know what you did with the script..
  18. try this... http://pastebin.com/raw.php?i=aRJySH0B
  19. Emistry

    @tradepoint

    like this ? http://pastebin.com/raw.php?i=BvAvZRKQ change the variable to your like... @Points
  20. try something like this.. for( .@i = 0; .@i < getarraysize( .@map$ ) - 1; .@i++ ) if( getd(".n_"+.@type+"_master_map$") == .@maps$[.@i] ){ callsub onendd; break; }
  21. perhap you have any script that disable the buff upon logout ?? Example : sc_end SC_ITEMBOOST; sc_end SC_EXPBOOST;
  22. for monster sprite you can do it by edit this file.. trunk/db/mob_avail.txt for allowing the Emperium to Move... you have to edit the monster mode... inside this file trunk/db/re/mob_db.txt refer this for edit monster database.. Custom_Mobs
  23. bonus2 bSkillAtk,n,x; Increase damage of skill n by x% (supports skill names) all item bonus stuff you can find it here... trunk/doc/item_bonus.txt
  24. what you mean by this you can simply edit the drop rate in trunk/db/re/mob_db.txt this drop rate is still affected by your server drop rate settings... trunk/db/mob_item_ratio.txt this can override above drop rate ......
  25. you havent decompile your LUB to LUA "completely" ..... refer the video / guide that you follow and re-do again / continue where you have stopped... anyway...this is the default npcidentity.lua we got.. http://subversion.assembla.com/svn/ClientSide/Lua_Project/lua%20files/datainfo/npcidentity.lua
×
×
  • Create New...