-
Posts
341 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by Joseph
-
activate pvp when X players are in a map.
Joseph replied to HristDead's question in Scripting Support
- 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. -
That will be perfectly fine. { <your_script_here> },{},{}
-
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 }
-
- 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; }
-
It's definitely a good work. So much easier with the new instance system. If you have problem rewriting it, you can ask around.
-
- script CashPointLogin -1,{ OnPCLoginEvent: if (#CashPointLogin) end; set #CASHPOINTS, #CASHPOINTS + 20000; set #CashPointLogin, 1; end; }
-
You will be naked if you use nude.
-
getequipisidentify was removed in r17341.
-
Added: bugreport:7820
-
Calling a 'mes' from another NPC using donpcevent,
Joseph replied to grobyczen's question in Scripting Support
Try using doevent -
Congratulations trojal-at-work!
-
Improvements, why not?
-
You can solve it by adding a Zeny check.
-
You can have a never ending woe with @agitstart. xD
-
What is your current revision? It's working fine for me. trunk/npc/re/quests/quests_dicastes.txt
-
Use strnpcinfo(0) instead of specifying the NPC name as each NPC has different name (hidden name).
-
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;
-
You can find them in trunk/db/castle_db.txt.
-
Antonio
-
Missing SQL tables. https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/sql-files/logs.sql
-
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
-
Change the label to something else instead of "OnKill".