Jump to content

Cisqua

Members
  • Posts

    131
  • Joined

  • Last visited

Everything posted by Cisqua

  1. Warning: include(error.php) [function.include]: failed to open stream: No such file or directory in /home/greenron/public_html/index.php on line 195 Warning: include(error.php) [function.include]: failed to open stream: No such file or directory in /home/greenron/public_html/index.php on line 195 Warning: include() [function.include]: Failed opening 'error.php' for inclusion (include_path='lib:.:/usr/lib/php:/usr/local/lib/php') in /home/greenron/public_html/index.php on line 195
  2. error: [Debug]: npc_scriptcont: Zombie Minion (sd->npc_id=110044407) is not 'Unknown NPC' (id=0). script: //===== rAthena Script ======================================= //= Run for Your Life //===== By: ================================================== //= Mysterious //===== Current Version: ===================================== //= 2.8 //===== Compatible With: ===================================== //= rAthena SVN //===== Description: ========================================= //= A Run for Your Life event (Based for Novices) //===== TODO: ================================================ // - Change more coding //===== Additional Comments: ================================= //= v1.0 - First release [Mysterious] //= v2.0 - Overhaul of Entire Script [Mysterious] //= v2.1 - Fixed Sentence structures [Mysterious] //= v2.2 - Fixed a Typo and made it obvious what players had to change [Mysterious] //= v2.3 - Removed unnecessary 'next;' thanks to soUPas [Mysterious] //= v2.4 - Fixed an issue where the prize giver was showing up when not supposed to [Mysterious] //= v2.5 - Added Friendly Messages [Mysterious] //= v2.6 - Removed duplicated OnInIt labels [Mysterious] //= v2.7 - Cleaning and organizing [Mysterious] //= v2.8 - Optimized a little better [Mysterious] //============================================================ - script RFYL#disable -1,{ OnInit: disablenpc "Zombie Master"; disablenpc "Present#RFYL"; } prt_in,44,95,5 script Zombie Minion 1015,{ set .@name$,"^228B22[ Minion ]^000000"; if (getgroupid() >= 4) goto LMS_Admin; mes .@name$; if (!.Status) { mes .@name$; mes "My master seems to be slacking.."; } else { mes "My master is currently busy! He has an invasion scheduled!"; } close; LMS_Admin: next; if (!.Status) { mes .@name$; mes "My master has no invasion planned at the moment. Do you wish to schedule an invasion?"; menu "- Start Event",M_RFYL,"- Spectate",M_warp,"- End Event",M_EndEvent,"- No Thanks",M_Leave; } else { mes .@name$; mes "Sorry! But there's already an invasion scheduled! Come back later."; } close; M_RFYL: next; mes .@name$; mes "Hold on while I call my master."; close2; goto StartEvent; M_warp: next; mes .@name$; mes "Very well, I will warp you to the map!"; warp "quiz_01",42,369; close; M_Leave: next; mes .@name$; mes "Ok " + strcharinfo(0) +"! Please come back after."; close; M_EndEvent: next; mes .@name$; mes "Ok master, I will stop the event for you right away!"; next; set .Status,0; disablenpc "Zombie Master"; disablenpc "Present#RFYL"; killmonsterall "quiz_01"; areawarp "quiz_01",10,10,450,450,"prontera",156,156; stopnpctimer; disablenpc "Zombie Minion"; warp "prontera",156,156; sleep 180000; enablenpc "Zombie Minion"; // ========================= OnHour03: // Triggers at 3 AM every day. OnHour09: // Triggers at 9 AM every day. OnHour15: // Triggers at 3 PM every day. OnHour21: // Triggers at 9 PM every day. StartEvent: //Announcement to notify all players // ========================= set .Status,1; announce "Zombie Vs. Novice event Will begin in 3 minutes. Head @ Prontera 156 169",0; killmonsterall "quiz_01"; sleep 55000; announce "Zombie Vs. Novice event will begin in 2 minutes! Head @ Prontera 156 169",0; sleep 5000; announce "Zombie Master: I have now appeared in Prontera!",0; enablenpc "Zombie Master"; sleep 60000; announce "Zombie Vs. Novice event will begin in 1 minute!",0; sleep 30000; mapannounce "quiz_01","In 30 seconds the zombies will spawn!",0; sleep 25000; announce "Zombie Vs. Novice event will begin in ~5~",0; sleep 1000; announce "Zombie Vs. Novice event will begin in ~4~",0; sleep 1000; announce "Zombie Vs. Novice event will begin in ~3~",0; sleep 1000; announce "Zombie Vs. Novice event will begin in ~2~",0; sleep 1000; announce "Zombie Vs. Novice event will begin in ~1~",0; sleep 1000; announce "Zombie Vs. Novice event has now begun!",0,0x00FF00; disablenpc "Zombie Master"; // ========================= // Round 1 // ========================= sleep 10000; monster "quiz_01",42,369,"Zombie",1015,1; sleep 10000; monster "quiz_01",42,369,"Zombie",1015,1; sleep 10000; monster "quiz_01",42,369,"Zombie",1015,1; sleep 10000; monster "quiz_01",42,369,"Zombie",1015,1; sleep 55000; // ========================= // Round 2 // ========================= mapannounce "quiz_01","Round 2!",0; sleep 10000; monster "quiz_01",42,369,"Zombie-2",1015,1; sleep 55000; monster "quiz_01",42,369,"Zombie-2",1015,1; // ========================= // Round 3 // ========================= mapannounce "quiz_01","Round 3!",0; sleep 10000; monster "quiz_01",42,369,"Zombie-3",1015,1; sleep 55000; monster "quiz_01",42,369,"Zombie-3",1015,1; // ========================= // Round 4 // ========================= mapannounce "quiz_01","Round 4!",0; sleep 10000; monster "quiz_01",42,369,"Zombie-4",1015,1; sleep 10000; monster "quiz_01",42,369,"Zombie-4",1015,1; sleep 55000; monster "quiz_01",42,369,"Zombie-4",1015,1; // ========================= // Round 5 // ========================= mapannounce "quiz_01","Round 5!",0; sleep 10000; monster "quiz_01",42,369,"Zombie-5",1015,1; sleep 55000; monster "quiz_01",42,369,"Zombie-5",1015,1; // ========================= // Round 6 // ========================= mapannounce "quiz_01","Round 6!",0; sleep 10000; monster "quiz_01",42,369,"Zombie-6",1015,1; sleep 55000; monster "quiz_01",42,369,"Zombie-6",1015,1; // ========================= // Round 7 // ========================= mapannounce "quiz_01","Round 7! Final Round!",0; sleep 10000; monster "quiz_01",42,369,"Zombie-7",1015,1; sleep 20000; monster "quiz_01",42,369,"Zombie-7",1015,1; sleep 30000; monster "quiz_01",42,369,"Zombie-7",1015,1; sleep 40000; monster "quiz_01",42,369,"Zombie-7",1036,1; sleep 50000; monster "quiz_01",42,369,"Zombie-7",1036,1; sleep 60000; monster "quiz_01",42,369,"Zombie-7",1015,1; initnpctimer; end; // ========================= // End of Rounds // ========================= OnTimer0500: if ( getmapusers("quiz_01") == 0 ) { killmonsterall "quiz_01"; announce "RFYL Event: Event has ended. No one has joined.",0; stopnpctimer; end; } else if ( getmapusers("quiz_01") > 1 ) { mapannounce "quiz_01",getmapusers("quiz_01") +" has survived the event.",0,0x00FF00;; initnpctimer; end; } initnpctimer; end; // ========================= // When players die // ========================= OnPCDieEvent: getmapxy .@mapnvz$,.@xnvz,.@ynvz,0; if ( .@mapnvz$ == "quiz_01") { sleep2 100; warp "prontera",156,156; atcommand "@alive "+ strcharinfo(0); dispbottom "Sorry, but you were killed."; } sleep2 500; if (.@mapnvz$ == "quiz_01" && getmapusers("quiz_01") == 1 ) { killmonsterall "quiz_01"; mapannounce "quiz_01","You have won, approach the Present NPC please.",0; enablenpc "Present#RFYL"; stopnpctimer; end; } end; } quiz_01,42,378,3 script Present#RFYL 72,{ mes "[Present for You]"; mes "Please tell me Your name:"; next; input .@name$; if(.@name$ != strcharinfo(0)) { mes "[ Present for You ]"; mes "Are you sure that is Your name?"; close; } mes "[ Present for You ]"; mes "Congrats. You've won."; close2; announce "Present for You: We have a winner! "+.@name$+" has won the Novice vs Zombie event!",0; getitem 673, 5; // 5 Bronze Coin = 5,000,000z warp "prontera",156,156; disablenpc "Present#RFYL"; set .Status,0; end; } prontera,156,172,4 script Zombie Master 1298,{ if (BaseLevel > 1) goto L_ClassLevel; //Change '1' to Your desired level if (class == 0) goto L_Event; //Checks if the player is a Novice, if so, proceeds into the event. if (class > 0) goto L_ClassLevel; //Checks if the Player is NOT a Novice. If they aren't, they are not allowed to participate. L_Event: mes "[ ^0000FFZombie Master^000000 ]"; mes "You wish to participate the Zombie Vs. Novice event?"; next; switch(select("- Yes","- No")) { case 1: sc_end SC_ALL; percentheal 100,100; warp "quiz_01",42,369; end; break; case 2: next; mes "[ ^0000FFZombie Master^000000 ]"; mes "Come back when Your ready."; close; break; L_ClassLevel: mes "[ ^0000FFZombie Master^000000 ]"; mes "Sorry, but it seems you are not a Novice and Level 1."; close; } } // ========================= // Mapflags // ========================= quiz_01 mapflag nowarpto quiz_01 mapflag nowarp quiz_01 mapflag noteleport quiz_01 mapflag nomemo quiz_01 mapflag nosave SavePoint quiz_01 mapflag nobranch quiz_01 mapflag noicewall quiz_01 mapflag nopenalty quiz_01 mapflag nobranch quiz_01 mapflag noexp quiz_01 mapflag noreturn quiz_01 mapflag pvp_noparty quiz_01 mapflag restricted 1
  3. thank you Kenpachi [ SOLVE ]
  4. and also how to change this if (getgmlevel() >= 40) goto LMS_Admin; insted ot this change it to gmgrouplv4 error: [Error]: npc_enable: Attempted to hide a non-existing NPC 'Zombie Master' (flag=0). [Error]: npc_enable: Attempted to hide a non-existing NPC 'Present#RFYL' (flag=0). [Error]: script error on npc/gNPC/event script/run_for_your_life.txt line 40 parse_line: expect command, missing function name or calling undeclared function 35 : if (getgmlevel() >= 40) goto LMS_Admin; 36 : mes "[Minion]"; 37 : if (!.Status) 38 : mes .@name$; 39 : mes "My master seems to be slacking.."; * 40 : 'e'lse { 41 : mes "My master is currently busy! He has an invasion scheduled!"; 42 : } 43 : close; 44 : 45 : LMS_Admin: [Error]: Missing 1 right curlys at file 'npc/event script/run_for_your_life.txt', line '305'. script: //===== rAthena Script ======================================= //= Run for Your Life //===== By: ================================================== //= Mysterious //===== Current Version: ===================================== //= 2.8 //===== Compatible With: ===================================== //= rAthena SVN //===== Description: ========================================= //= A Run for Your Life event (Based for Novices) //===== TODO: ================================================ // - Change more coding //===== Additional Comments: ================================= //= v1.0 - First release [Mysterious] //= v2.0 - Overhaul of Entire Script [Mysterious] //= v2.1 - Fixed Sentence structures [Mysterious] //= v2.2 - Fixed a Typo and made it obvious what players had to change [Mysterious] //= v2.3 - Removed unnecessary 'next;' thanks to soUPas [Mysterious] //= v2.4 - Fixed an issue where the prize giver was showing up when not supposed to [Mysterious] //= v2.5 - Added Friendly Messages [Mysterious] //= v2.6 - Removed duplicated OnInIt labels [Mysterious] //= v2.7 - Cleaning and organizing [Mysterious] //= v2.8 - Optimized a little better [Mysterious] //============================================================ - script RFYL#disable -1,{ OnInit: disablenpc "Zombie Master"; disablenpc "Present#RFYL"; } prt_in,44,95,5 script Zombie Minion 1015,{ set .@name$,"^228B22[ Minion ]^000000"; if (getgmlevel() >= 40) goto LMS_Admin; mes .@name$; if (!.Status) mes "My master seems to be slacking.."; else { mes "My master is currently busy! He has an invasion scheduled!"; } close; LMS_Admin: next; if (!.Status) mes .@name$; mes "My master has no invasion planned at the moment. Do you wish to schedule an invasion?"; menu "- Start Event",M_RFYL,"- Spectate",M_warp,"- End Event",M_EndEvent,"- No Thanks",M_Leave; else { mes .@name$; mes "Sorry! But there's already an invasion scheduled! Come back later."; } close; M_RFYL: next; mes .@name$; mes "Hold on while I call my master."; close2; goto StartEvent; M_warp: next; mes .@name$; mes "Very well, I will warp you to the map!"; warp "quiz_01",42,369; close; M_Leave: next; mes .@name$; mes "Ok " + strcharinfo(0) +"! Please come back after."; close; M_EndEvent: next; mes .@name$; mes "Ok master, I will stop the event for you right away!"; next; set .Status,0; disablenpc "Zombie Master"; disablenpc "Present#RFYL"; killmonsterall "quiz_01"; areawarp "quiz_01",10,10,450,450,"prontera",156,156; stopnpctimer; disablenpc "Zombie Minion"; warp "prontera",156,156; sleep 180000; enablenpc "Zombie Minion"; // ========================= OnHour03: // Triggers at 3 AM every day. OnHour09: // Triggers at 9 AM every day. OnHour15: // Triggers at 3 PM every day. OnHour21: // Triggers at 9 PM every day. StartEvent: //Announcement to notify all players // ========================= set .Status,1; announce "Zombie Vs. Novice event Will begin in 3 minutes. Head @ Prontera 156 169",0; killmonsterall "quiz_01"; sleep 55000; announce "Zombie Vs. Novice event will begin in 2 minutes! Head @ Prontera 156 169",0; sleep 5000; announce "Zombie Master: I have now appeared in Prontera!",0; enablenpc "Zombie Master"; sleep 60000; announce "Zombie Vs. Novice event will begin in 1 minute!",0; sleep 30000; mapannounce "quiz_01","In 30 seconds the zombies will spawn!",0; sleep 25000; announce "Zombie Vs. Novice event will begin in ~5~",0; sleep 1000; announce "Zombie Vs. Novice event will begin in ~4~",0; sleep 1000; announce "Zombie Vs. Novice event will begin in ~3~",0; sleep 1000; announce "Zombie Vs. Novice event will begin in ~2~",0; sleep 1000; announce "Zombie Vs. Novice event will begin in ~1~",0; sleep 1000; announce "Zombie Vs. Novice event has now begun!",0,0x00FF00; disablenpc "Zombie Master"; // ========================= // Round 1 // ========================= sleep 10000; monster "quiz_01",42,369,"Zombie",1015,1; sleep 10000; monster "quiz_01",42,369,"Zombie",1015,1; sleep 10000; monster "quiz_01",42,369,"Zombie",1015,1; sleep 10000; monster "quiz_01",42,369,"Zombie",1015,1; sleep 55000; // ========================= // Round 2 // ========================= mapannounce "quiz_01","Round 2!",0; sleep 10000; monster "quiz_01",42,369,"Zombie-2",1015,1; sleep 55000; monster "quiz_01",42,369,"Zombie-2",1015,1; // ========================= // Round 3 // ========================= mapannounce "quiz_01","Round 3!",0; sleep 10000; monster "quiz_01",42,369,"Zombie-3",1015,1; sleep 55000; monster "quiz_01",42,369,"Zombie-3",1015,1; // ========================= // Round 4 // ========================= mapannounce "quiz_01","Round 4!",0; sleep 10000; monster "quiz_01",42,369,"Zombie-4",1015,1; sleep 10000; monster "quiz_01",42,369,"Zombie-4",1015,1; sleep 55000; monster "quiz_01",42,369,"Zombie-4",1015,1; // ========================= // Round 5 // ========================= mapannounce "quiz_01","Round 5!",0; sleep 10000; monster "quiz_01",42,369,"Zombie-5",1015,1; sleep 55000; monster "quiz_01",42,369,"Zombie-5",1015,1; // ========================= // Round 6 // ========================= mapannounce "quiz_01","Round 6!",0; sleep 10000; monster "quiz_01",42,369,"Zombie-6",1015,1; sleep 55000; monster "quiz_01",42,369,"Zombie-6",1015,1; // ========================= // Round 7 // ========================= mapannounce "quiz_01","Round 7! Final Round!",0; sleep 10000; monster "quiz_01",42,369,"Zombie-7",1015,1; sleep 20000; monster "quiz_01",42,369,"Zombie-7",1015,1; sleep 30000; monster "quiz_01",42,369,"Zombie-7",1015,1; sleep 40000; monster "quiz_01",42,369,"Zombie-7",1036,1; sleep 50000; monster "quiz_01",42,369,"Zombie-7",1036,1; sleep 60000; monster "quiz_01",42,369,"Zombie-7",1015,1; initnpctimer; end; // ========================= // End of Rounds // ========================= OnTimer0500: if ( getmapusers("quiz_01") == 0 ) { killmonsterall "quiz_01"; announce "RFYL Event: Event has ended. No one has joined.",0; stopnpctimer; end; } else if ( getmapusers("quiz_01") > 1 ) { mapannounce "quiz_01",getmapusers("quiz_01") +" has survived the event.",0,0x00FF00;; initnpctimer; end; } initnpctimer; end; // ========================= // When players die // ========================= OnPCDieEvent: getmapxy .@mapnvz$,.@xnvz,.@ynvz,0; if ( .@mapnvz$ == "quiz_01") { sleep2 100; warp "prontera",156,156; atcommand "@alive "+ strcharinfo(0); dispbottom "Sorry, but you were killed."; } sleep2 500; if (.@mapnvz$ == "quiz_01" && getmapusers("quiz_01") == 1 ) { killmonsterall "quiz_01"; mapannounce "quiz_01","You have won, approach the Present NPC please.",0; enablenpc "Present#RFYL"; stopnpctimer; end; } end; } quiz_01,42,378,3 script Present#RFYL 72,{ mes "[Present for You]"; mes "Please tell me Your name:"; next; input .@name$; if(.@name$ != strcharinfo(0)) { mes "[ Present for You ]"; mes "Are you sure that is Your name?"; close; } mes "[ Present for You ]"; mes "Congrats. You've won."; close2; announce "Present for You: We have a winner! "+.@name$+" has won the Novice vs Zombie event!",0; getitem 673, 5; // 5 Bronze Coin = 5,000,000z warp "prontera",156,156; disablenpc "Present#RFYL"; set .Status,0; end; } prontera,156,172,4 script Zombie Master 1298,{ if (BaseLevel > 1) goto L_ClassLevel; //Change '1' to Your desired level if (class == 0) goto L_Event; //Checks if the player is a Novice, if so, proceeds into the event. if (class > 0) goto L_ClassLevel; //Checks if the Player is NOT a Novice. If they aren't, they are not allowed to participate. L_Event: mes "[ ^0000FFZombie Master^000000 ]"; mes "You wish to participate the Zombie Vs. Novice event?"; next; switch(select("- Yes","- No")) { case 1: sc_end SC_ALL; percentheal 100,100; warp "quiz_01",42,369; end; break; case 2: next; mes "[ ^0000FFZombie Master^000000 ]"; mes "Come back when Your ready."; close; break; L_ClassLevel: mes "[ ^0000FFZombie Master^000000 ]"; mes "Sorry, but it seems you are not a Novice and Level 1."; close; } // ========================= // Mapflags // ========================= quiz_01 mapflag nowarpto quiz_01 mapflag nowarp quiz_01 mapflag noteleport quiz_01 mapflag nomemo quiz_01 mapflag nosave SavePoint quiz_01 mapflag nobranch quiz_01 mapflag noicewall quiz_01 mapflag nopenalty quiz_01 mapflag nobranch quiz_01 mapflag noexp quiz_01 mapflag noreturn quiz_01 mapflag pvp_noparty quiz_01 mapflag restricted 1
  5. anyone know how to set mapflag in certain map. eg: all players including gm lv80 if they used @warp in certain map.. map will say you "cannot warp to this warp, this map used for event only" players can warp to this map only using npc.
  6. thank you Capuche. my probs solve.
  7. why i have this when my gm account login.. latest r17127 An Error occur when trying to load #ob01
  8. thanks.. need to configure all over dont know where ive done wrong.. hehe why i have this when my gm account login.. latest r17127 An Error occur when trying to load #ob01
  9. your screenshot is itemshop which using zeny other one is cashshop using cash points or kafra points... yes you can change it try this guide. server side msg string table search for "Cash Points" and "Kafra Points" client side your msgstringtable search for cash point also kafra points but about the client.exe you used you need to hex some code but i cant find the guide if what HEX to find and to change... try to search here or eathena maybe?
  10. im using latest svn its r17127 but ive got many problems ... all mobs dont move afters restart all mobs move but after kill all item drop wont disapear. dont know what problems server have.. now i want to reupdate the svn but cant find guide how to do it.. im using linux centos..
  11. Cisqua

    RWC Maps

    hello, try this Judas client try to unpack his grf.. http://supportmii.com/ro1/Clients/Judas_Setups/Clientside/
  12. what kind of error? post the map server said so capuche can fix it
  13. try this.. better to test before put in your server. //getitem2 "<item name>",<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<account ID>}; - script Freebies -1,{ OnPCLoginEvent: if(Class == 0 && BaseLevel == 1 && JobLevel == 1 && BaseExp == 0 && #freebies == 0) { // only novice baselv1 joblv1 can get this.. menu "ITEM 1 NAME HERE", ITEM1, "ITEM 2 NAME HERE", ITEM2, "ITEM 3 NAME HERE", ITEM3, "ITEM 4 NAME HERE", ITEM4, "ITEM 5 NAME HERE", ITEM5, "ITEM 6 NAME HERE", ITEM6; ITEM1: getitem2 ITEM1 ID here,1,1,6,0,@card1,@card2,@card3,@card4; set #freebies,1; // set to 1 so players cant get more. end; ITEM2: getitem2 ITEM1 ID here,1,1,6,0,@card1,@card2,@card3,@card4; set #freebies,1; end; ITEM3: getitem2 ITEM1 ID here,1,1,6,0,@card1,@card2,@card3,@card4; set #freebies,1; end; ITEM4: getitem2 ITEM1 ID here,1,1,6,0,@card1,@card2,@card3,@card4; set #freebies,1; end; ITEM5: getitem2 ITEM1 ID here,1,1,6,0,@card1,@card2,@card3,@card4; set #freebies,1; end; ITEM6: getitem2 ITEM1 ID here,1,1,6,0,@card1,@card2,@card3,@card4; set #freebies,1; end; } }
  14. @ cadz sorry if i used your request to post mine here. @ Capuche this script will work if i have new gm and edit the script and use @unloadnpc then @loadnpc bla/bla/bla?
  15. @ Capuche can i used this like this? - script papery -1,{ OnInit: setarray .@tmp$,GM Test1, GM Test2, Gm Test3;// Name of GM team .account_gm$ = implode( .@tmp$, "|" ); end; OnPCLoginEvent: if( getgmlevel() && !compare( .account_gm$, getcharid(3) +"" ) ) atcommand "@block "+ strcharinfo(0); end; } i want to script work like if gm making new character npc will block the new char og gm ... i want to implement all gm account 1 char only..
  16. i saw same as you requested but i cant find the link..
  17. the script is working fine.. i want to request to modify this script to put some anti exploit code.. *paladin kill her/him self using grand cross *anti killing novice this ladder work in 2nd class only and blv99 and joblv70 if not kill and die not counting. *work on this map only guild_vs3,etc,etc,etc; adding gmgrouplvl 3 above will not count all kill and deaths. is this code right? and add this after OnPCKillEvent:? if ( killerrid == getcharid(3) ) end; // kill himself(like grandcross) doesn't add kills count. if ( strcharinfo(3) != "guild_vs3","pvp_y_1-2","pvp_y_1-2" || (Class > 4000 && Class < 4023) || BaseLevel < 99) || JobLevel < 70) end; // Level 99/70 doesn't add kills and deaths count. /* create table pvpladder ( cid int(11) primary key, name varchar(23), kills int(11), deaths int(11), class int(11), key (kills) ) engine = myisam; */ prontera,164,170,2 script PvP Ladder 786,{ mes "^228B22[ Top 10 PvP Ladder ]^000000"; .@nb = query_sql( "select name, kills, deaths, class from pvpladder order by kills desc limit 10", .@name$, .@kills, .@deaths, .@class ); if ( !.@nb ) { mes "ladder is empty"; close; } for ( .@i = 0; .@i < .@nb; .@i++ ) mes "^0000FF"+ (.@i+1) +": ^228B22"+ .@name$[.@i] +" ^606060"+ jobname(.@class[.@i]) +" ^0000FF"+ .@kills[.@i] +" / ^FF0000"+ .@deaths[.@i] +"^000000"; close; OnPCKillEvent: if ( killerrid == getcharid(3) ) end; // kill himself(like grandcross) doesn't add kills count. if ( strcharinfo(3) != "guild_vs3","pvp_y_1-2","pvp_y_1-2" || (Class > 4000 && Class < 4023) || BaseLevel < 99) || JobLevel < 70) end; // Level 99/70 doesn't add kills and deaths count. query_sql "insert into pvpladder values ( "+ getcharid(0) +", '"+ escape_sql( strcharinfo(0) ) +"', 1, 0, "+ class +" ) on duplicate key update kills = kills +1 "; attachrid killedrid; query_sql "insert into pvpladder values ( "+ getcharid(0) +", '"+ escape_sql( strcharinfo(0) ) +"', 0, 1, "+ class +" ) on duplicate key update deaths = deaths +1 "; delwaitingroom; // continue read OnInit: if ( query_sql( "select name, kills, deaths, class from pvpladder order by kills desc limit 1", .@name$, .@kills, .@deaths, .@class ) ) waitingroom .@name$ +" ("+ jobname(.@class) +") : "+ .@kills +" / "+ .@deaths, 0; else waitingroom "PVP Ladder !", 0; end; }
  18. @AnnieRuru its working now... thank you very much!... problem solve.
  19. wow very fast reply.. thanks Emistry! Emistry how about the if? like if baselvl 99 npc wont work.. i have this error in my map server [Warning]: script:get_val: cannot access player variable 'BaseLevel', defaulting to 0 [Error]: script_rid2sd: fatal error ! player not attached! [Debug]: Source (NPC): Freebies (invisible/not on a map)
  20. @ Emistry i dont have idea about that..
  21. i want this like if player kill poring it give 10 lvls per kills.
×
×
  • Create New...