Jump to content

Joseph

Members
  • Posts

    341
  • Joined

  • Last visited

Everything posted by Joseph

  1. - script ComePvP -1,{ OnInit: .map$ = "guild_vs2"; .usersCount = 10; setmapflag .map$,mf_loadevent; setmapflag .map$,mf_partylock; if (getmapflag(.map$,mf_pvp) > 0) removemapflag .map$,mf_pvp; end; OnPCDieEvent: if (strcharinfo(3) == .map$ && getmapflag(.map$,mf_pvp) > 0) { if (getusers(0) <= .usersCount) { for (.@i = 0; .@i < getarraysize(.partyCount); .@i++) deletearray getd(".party_" + .partyCount[.@i]),128; deletearray .partyCount,128; mapwarp .map$,"prontera",0,0; pvpoff .map$; } } end; OnPCLoadMapEvent: .@_pid = getcharid(1); if (.@_pid == 0) end; .@str$ = ".party_" + .@_pid + "$"; if (getd(.@str$) != "") { if (compare("#"+strcharinfo(0)+"#",implode(getd(.@str$),"#"))) end; } getpartymember .@_pid,0; .partyCount[getarraysize(.partyCount)] = .@_pid; copyarray getd(".party_" + .@_pid + "$[0]"),$@partymembername$[0],$@partymembercount; if (getarraysize(.partyCount) > 1 && getmapflag(.map$,mf_pvp) < 1 && getusers(0) >= .usersCount) pvpon .map$; end; } I'm unsure this is what you want. PvP will be switched on, when there are more than 9 players and at least 2 parties. And, will be switched off, when less than or left 9 players in the map.
  2. That will be perfectly fine. { <your_script_here> },{},{}
  3. if (.@checker_level > 9) { getitem 509, rand(20, 50); // white herb getitem 510, rand(1, 10); // Blue herb getitem 521, rand(1, 5); // Aloe Leaf } else if (.@checker_level > 19) { getitem 509, rand(45, 85); // white herb getitem 510, rand(9, 25); // Blue herb getitem 521, rand(15, 35); // Aloe Leaf } else { getitem 507, rand( 10, 75); // red herb getitem 508, rand(1, 10); // yellow herb }
  4. - scrript SayNoToAFK -1,{ OnPCLoginEvent: sleep2 5000; // Check for every 5 seconds if (checkidle(strchrinfo(0)) >= 5) // Idle for 5 seconds atcommand "@kick "+strcharinfo(0); goto OnPCLoginEvent; }
  5. It's definitely a good work. So much easier with the new instance system. If you have problem rewriting it, you can ask around.
  6. - script CashPointLogin -1,{ OnPCLoginEvent: if (#CashPointLogin) end; set #CASHPOINTS, #CASHPOINTS + 20000; set #CashPointLogin, 1; end; }
  7. You will be naked if you use nude.
  8. Congratulations trojal-at-work!
  9. I'm always hungry! :)

  10. You can solve it by adding a Zeny check.
  11. Happy Chinese New Year!

  12. You can have a never ending woe with @agitstart. xD
  13. What is your current revision? It's working fine for me. trunk/npc/re/quests/quests_dicastes.txt
  14. Use strnpcinfo(0) instead of specifying the NPC name as each NPC has different name (hidden name).
  15. You can add a check under OnInit to see if the time is within 14:00-16:00. OnInit: .@hour = gettime(3); if (.@hour >= 14 && .@hour < 16) disablenpc strnpcinfo(0); else enablenpc strnpcinfo(0); end; OnClock1400: disablenpc strnpcinfo(0); end; OnClock16000: enablenpc strnpcinfo(0); end;
  16. You can find them in trunk/db/castle_db.txt.
  17. Missing SQL tables. https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/sql-files/logs.sql
  18. Search for these lines and change 604800 to 172800. Quest_db: 60200,604800,0,0,0,0,0,0,"Endless Tower Effect" Endless_Tower: set .@dun_lim_time,etower_timer+604800; // 1 week
  19. Change the label to something else instead of "OnKill".
×
×
  • Create New...