Jump to content

Joseph

Members
  • Posts

    341
  • Joined

  • Last visited

Everything posted by Joseph

  1. rAthena using getgroupid() instead of getgmlevel().
  2. Probably its a NPC sprite problem? Try disabling all the NPCs.
  3. Hello Mia Potter! The small font thingy works, it makes people to put extra effort reading every single word.
  4. I guess something like this will work. Actually, I thought of rates/total_rates*100 to get the percentage, but the emulator failed to calculate decimals. I know there are other ways to get the decimals, but will not be as efficient as the below one? O_O setarray .@array, <item_id>,<rates>{...}; for ( set .@i, 0; .@i < getarraysize(.@array); set .@i, .@i + 2 ) .@t, .@t + .@array[.@i+1]; if ( .@t <= 0 || .@t >= 2147483647 ) // I think you won't go that high... { debugmes "O_O You really go that high..."; end; } set .@rnd, rand(1,.@t); for ( set .@i, 0; .@i < getarraysize(.@array); set .@i, .@i + 2 ) { .@sr, .@sr + .@array[.@i+1]; if ( .@sr >= .@rnd ) { //GetItem } }
  5. Warp when a party exists: if ( getcharid(1) == 0 ) end; mes "You have a party"; close2; warpparty "prontera",0,0,getcharid(1); end; Warp when the party has a certain number of members: getpartymember(getcharid(1)); if ( $@partymembercount >= 5 ) { mes "Your party have 5 or more members."; close2; warpparty "prontera",0,0,getcharid(1); end; } mes "Only party with at least 5 members are allowed to enter."; close;
  6. Find that line and change it.
  7. Okay, try this.. http://upaste.me/ba32483511c125e
  8. Try this. http://upaste.me/e55f482aba4da50
  9. It pauses the script for 5 seconds.
  10. The Billion Banker A simple banker where you can store and withdraw large amount of Zeny without doing small transactions again, again and again... Compatibility: rAthena SVN, r15039+ Changelogs: 1.0 - Released! 2.0 - Fixed string variable issue. Files: billion_banker_v1.1.txt billion_banker_v1.0.txt Post any bugs, comments, suggestions and criticisms.
  11. Why not you show us the script with the error attached.
  12. Lets say %Y gives 2012 (4 digits), so your max length must be higher than 4. You can put 5 or even 100, as long the max length value is always higher.
  13. Modify the script as what Emistry suggested.
  14. Let me give you an example of what Euphy said. case 1: setarray .@GuardianType$[0],"Sniper Guardian","2730","1","5"; break; ... ... monster "pvp_n_1-1",0,0,.@GuardianType$[0],atoi(.@GuardianType$[1]),atoi(.@GuardianType$[2]),$KRVictors,"Guardian::OnHWGuardianKill";
  15. You have misplaced it. It should be .@GuardianType$[0].
×
×
  • Create New...