Jump to content

Emistry

Forum Moderator
  • Posts

    10018
  • Joined

  • Days Won

    408

Everything posted by Emistry

  1. for( .@i = 1; .@i <= 10; .@i++ ) if( getequipcardcnt( .@i ) ){ mes "Please remove all the card in your equipments."; close; }
  2. just use notepad++ and search through the NPC folder with the name of the npc you looking for.
  3. Emistry

    party related

    http://pastebin.com/raw.php?i=2qAiC7n2
  4. make sure your map dont use this.. mapname mapflag nocommand and change to this mapname mapflag nocommand 90 gm level 90 above can use command
  5. try change [jobtbl.JT_GOD_PORING] = "GOD_PORING", into [jobtbl.JT_GOD_PORING] = "GOD_PORING"
  6. this i guess ?? npc\merchants\refine.txt payon,144,173,5 script Antonio 88,{
  7. just find it in msgstringtable.txt and remove it ... i think should be %d# ---> not sure... maybe %s#
  8. set .@random,rand( .itemlist_size ); set .@amount,rand( .min_amount[.@random],.max_amount[.@random] ); getitem .itemlist[.@random],.@amount; announce strcharinfo(0)+" gained "+.@amount+" x "+getitemname( .itemlist[.@random] ),0; end; OnInit: setarray .itemlist,512,607,608; setarray .min_amount,1,1,1; setarray .max_amount,10,100,200; set .itemlist_size,getarraysize( .itemlist ); end;
  9. make sure your map have the coordinate of these range.. setarray .CoordinateX[0],150,155; setarray .CoordinateY[0],175,175; try use @tonpc Runes to check whether the npc is loaded..and located at where....
  10. check ur maps...coordinate setting..and error....and etc..
  11. made this not long ago ~ = ) http://pastebin.com/raw.php?i=sRf2yxwu // usage : // [npc:Sample]map#512#10 // [npc:Sample]all#512#123
  12. @Capuche.. you mean this ? https://rathena.org/board/index.php?/files/file/2498-%7B?%7D/
  13. ASPD in pre-renewal and ASPD in renewal have large different in the calculation ...
  14. trunk/src/config/renewal.h /// game renewal server mode /// (disable by commenting the line) /// /// leave this line to enable renewal specific support such as renewal formulas #define RENEWAL
  15. fixed in version 4.1 - @go / @warp caused the style return to original styles. https://rathena.org/board/index.php?/files/file/2859-%7B?%7D/ for the unable to walk issue....i dunno what caused it...i cant duplicate it in my test server .... i tried exactly the same in the video shown...but still failed to duplicate it...
  16. change these line by line...not using the "replace all" .. you already mess up part of the script...
  17. swt ....i just show part of it...there are tons of these.... .@i++ and etc....
  18. callshop "quest_shop1",1; npcshopattach "quest_shop1"; close; // <----------------------- CHANGE TO end; every shop ... btw....there are better dynamic shop out there... https://rathena.org/board/index.php?/files/file/2504-%7B?%7D/ or trunk/npc/custom/quests/quest_shop.txt
  19. the script isnt compatible for eAthena ... if you want to make it work in eathena...you have to change all these .@i = 0; to set .@i,0;
  20. if(points > 2) { sc_start SC_BLESSING,360000,10; } if(points > 3) { sc_start SC_EDP,360000,5; sc_start SC_ENDURE,360000,10; sc_start SC_ANGELUS,360000,10; } if(points > 4) { sc_start SC_MAGNIFICAT,360000,5; sc_start SC_GLORIA,360000,5; sc_start SC_ADRENALINE2,360000,1; sc_start SC_IMPOSITIO,360000,5; sc_start SC_SUFFRAGIUM,360000,3; sc_start SC_BLESSING,360000,10; sc_start SC_INCREASEAGI,360000,10; sc_start SC_WEAPONPERFECTION,360000,10; sc_start SC_OVERTHRUST,360000,5; } end; dont use the "else" if you want to give all these buff ....
  21. setarray .myarray$[0], "a", "b", "c", "d", "e"; set .myarray_size,getarraysize( .myarray$ ); // $foo = rand( .myarray_size ); for( .@i = 0; .@i < .myarray_size; .@i++ ) mes ".myarray$["+.@i+"] = "+.myarray$[.@i]; close; in your case... setarray .myarray[0], "a", "b", "c", "d", "e"; $foo = rand(0,4) + 1; if($foo){ mes .myarray[$foo - 1]; } anyway....you dont have to check if the $foo is assigned a value or not..the array start from 0 ~ 4 ... it will alway return the 1st value in array if your $foo isnt assigned with any value.
  22. any integer variable with value of 0 is same as "not declared" ... basically you can compare it like this....the "null" will be treat as the "character variable" with a value of 0 ( if it's not declared ) ... you mean delete the value from array ? you can use deletearray
  23. Emistry

    Hair Style

    dont remove all these setting if you are unsure what it will caused to the script ..... set set the cost value to 0 and it will be free ...
  24. Emistry

    OnTouch

    while ( .@t ) { dispbottom "You can use me again in "+ .@t +" second"+ ( ( .@t > 1 ) ? "s" : "" ) +"."; sleep2 1000 ; set .@t, .@t - 1; } this part.....useless ......why ? because ....every time the player click on the NPC....it will execute all the script before this part. ...mean..player still get buffed...and time refreshed everytime they click on it... and...why use a loop for these ?? hmm .. just a simple check like this is enough.. if( @t2 > gettimetick(2) ){ dispbottom "Delaying "+( @t2 - gettimetick(2) )+" seconds."; end; }
×
×
  • Create New...