nexus1528 Posted July 18, 2013 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 20 Reputation: 0 Joined: 07/15/13 Last Seen: November 25, 2014 Share Posted July 18, 2013 help I have a script that when a player kills another player they will getitem 7420 . or skulls in their inventory but I want this to be on pvp maps only and woe maps only . how to do it ? my pvp map is on bat_c02 .. Quote Link to comment Share on other sites More sharing options...
Skorm Posted July 18, 2013 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: 17 hours ago Share Posted July 18, 2013 (edited) - script killmark -1,{ OnPcKillEvent: set .@a$, strcharinfo(3); set .@b , getmapflag(.@a$,mf_pvp)+ getmapflag(.@a$,mf_gvg); if(.@ getitem 7420,1; } If you wanted the script to be a little more dynamic and work on all pvp/gvg maps you could do that... You might also have to add same other map flags like mf_gvg_castle but I'm not sure how often they get used. You can find a whole list in your server db/const.txt. Edited July 18, 2013 by Skorm Quote Link to comment Share on other sites More sharing options...
Patskie Posted July 18, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: November 10, 2024 Share Posted July 18, 2013 trunk/conf/battle/player.conf? // Players' will drop a 'Skull' when killed? // 0 = Disabled // 1 = Dropped only in PvP maps // 2 = Dropped in all situations bone_drop: 0 Quote Link to comment Share on other sites More sharing options...
nexus1528 Posted July 18, 2013 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 20 Reputation: 0 Joined: 07/15/13 Last Seen: November 25, 2014 Author Share Posted July 18, 2013 trunk/conf/battle/player.conf? // Players' will drop a 'Skull' when killed? // 0 = Disabled // 1 = Dropped only in PvP maps // 2 = Dropped in all situations bone_drop: 0 hmmm here is my script - script killmark,{ OnPcKillEvent: getitem 7420,1; } i want this to be on pvp maps only .. Quote Link to comment Share on other sites More sharing options...
Emistry Posted July 18, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 30 minutes ago Share Posted July 18, 2013 OnPCKillEvent: if( strcharinfo(3) == "bat_c02" ) getitem 7420,1; end; Quote Link to comment Share on other sites More sharing options...
nexus1528 Posted July 18, 2013 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 20 Reputation: 0 Joined: 07/15/13 Last Seen: November 25, 2014 Author Share Posted July 18, 2013 tnx to all of you for your help.. more powers Quote Link to comment Share on other sites More sharing options...
Checkmate Posted September 30, 2013 Group: Members Topic Count: 96 Topics Per Day: 0.02 Content Count: 554 Reputation: 14 Joined: 09/24/12 Last Seen: November 20, 2024 Share Posted September 30, 2013 Skorm About this... - script killmark -1,{ OnPcKillEvent: set .@a$, strcharinfo(3); set .@b , getmapflag(.@a$,mf_pvp)+ getmapflag(.@a$,mf_gvg); if(.@b) getitem 7420,1; } If you wanted the script to be a little more dynamic and work on all pvp/gvg maps you could do that... You might also have to add same other map flags like mf_gvg_castle but I'm not sure how often they get used. You can find a whole list in your server db/const.txt. How to put this if we were using this script???? Cuz when im trying and always get error... http://www.eathena.ws/board/lofiversion/index.php/t238512.html Ultimate PVP V2 Quote Link to comment Share on other sites More sharing options...
Boom Posted September 30, 2013 Group: Members Topic Count: 21 Topics Per Day: 0.00 Content Count: 182 Reputation: 22 Joined: 12/30/12 Last Seen: February 20, 2017 Share Posted September 30, 2013 - script killmark -1,{ OnPcKillEvent: set .@a$, strcharinfo(3); set .@b , getmapflag(.@a$,mf_pvp)+ getmapflag(.@a$,mf_gvg); if(.@ getitem 7420,1; } If you wanted the script to be a little more dynamic and work on all pvp/gvg maps you could do that... You might also have to add same other map flags like mf_gvg_castle but I'm not sure how often they get used. You can find a whole list in your server db/const.txt. What errors are you receiving? This is the script already and should be saved on another txt file (Include it on the NPC scripts to be loaded on npc/scripts_custom.conf file) or inserted within the script you mentioned. Quote Link to comment Share on other sites More sharing options...
Checkmate Posted September 30, 2013 Group: Members Topic Count: 96 Topics Per Day: 0.02 Content Count: 554 Reputation: 14 Joined: 09/24/12 Last Seen: November 20, 2024 Share Posted September 30, 2013 What errors are you receiving? This is the script already and should be saved on another txt file (Include it on the NPC scripts to be loaded on npc/scripts_custom.conf file) or inserted within the script you mentioned. Owh.. is that the way...?? No need to merge it with Ultimate PVP V2??? UVP2 // UVP 2 prontera.gat,149,185,5 script Ultimate PvP Warper 419,{ if (.pvp_square$=="") donpcevent "Ultimate PVP warper::OnClock0000"; mes "[PvP Warper]"; mes "Which arena do you want to go to?"; switch(select("PVP Square ["+getmapusers(.pvp_square$)+"/100]:PVP Nightmare ["+getmapusers("guild_vs3")+"/100]:PVP LowLevel ["+getmapusers("guild_vs1")+"/100]:PVP NoPotion ["+getmapusers("pvp_y_8-2")+"/100]:Non Donator PVP ["+getmapusers("1@orcs")+"/100]:Baby PvP Room ["+getmapusers("pvp_y_1-2")+"/100]")) { case 1: // PVP Square if (getmapusers(.pvp_square$) > 99) callsub S_full; callsub S_payment; warp .pvp_square$,0,0; end; case 2: // PVP Nightmare if (getmapusers("guild_vs3") > 99) callsub S_full; callsub S_payment; warp "guild_vs3",0,0; end; case 3: // PVP LowLevel if (getmapusers("guild_vs1") > 99) callsub S_full; if (BaseLevel > 50) { // Edit 50 to any maximum Lvl of a player can enter this room mes "only Base Level 1 - 50 may enter."; close; } callsub S_payment; warp "guild_vs1",0,0; end; case 4: // PVP NoPotion if (getmapusers("pvp_y_8-2") > 99) callsub S_full; for( set .@i,0; .@i<getarraysize(.NoPotion_ids); set .@i,.@i+1 ) { if (countitem(.NoPotion_ids[.@i])) { mes "You can not bring potions in this pvp."; close; } } callsub S_payment; warp "pvp_y_8-2",0,0; end; case 5: // Non Donator PVP if (getmapusers("1@orcs") > 99) callsub S_full; for( set .@i,0; .@i<getarraysize(.NoDonator_ids); set .@i,.@i+1 ) { if (countitem(.NoDonator_ids[.@i])) { mes "You can not bring God items in this pvp."; close; } } callsub S_payment; warp "1@orcs",0,0; end; Case 6: // Baby PvP Room if (getmapusers("pvp_y_1-2") > 99) callsub S_full; if (class < 4023 || class > 4045) goto L_NotBaby; callsub S_payment; warp "pvp_y_1-2",0,0; end; L_NotBaby: mes "Only baby can enter this room"; close; } S_full: mes " "; mes "I'm sorry, this arena is full. Please try again later..."; close; S_payment: if (Zeny < (200*BaseLevel + 800)) { mes "You don't have enough zeny."; mes "It costs "+(200*BaseLevel + 800)+" zeny for you to enter."; close; } set Zeny, Zeny - (200*BaseLevel + 800); return; OnInit: OnTimer5000: delwaitingroom; switch(rand(1,6)) { Case 1: waitingroom getmapusers(.pvp_square$)+" player"+( getmapusers(.pvp_square$) > 1 ? "s":"") +" are in the PvP Square", 0; goto Timer; end; break; Case 2: waitingroom getmapusers("guild_vs3")+" player"+( getmapusers("guild_vs3") > 1 ? "s":"") +" are in the PvP Nightmare", 0; goto Timer; end; break; Case 3: waitingroom getmapusers("guild_vs1")+" player"+( getmapusers("guild_vs1") > 1 ? "s":"") +" are in the PvP Lowlvl", 0; goto Timer; end; break; Case 4: waitingroom getmapusers("pvp_y_8-2")+" player"+( getmapusers("pvp_y_8-2") > 1 ? "s":"") +" are in the PvP NoPotion", 0; goto Timer; end; break; Case 5: waitingroom getmapusers("1@orcs")+" player"+( getmapusers("1@orcs") > 1 ? "s":"") +" are in the PvP NoDonator", 0; goto Timer; end; break; Case 6: waitingroom getmapusers("pvp_y_1-2")+" player"+( getmapusers("pvp_y_1-2") > 1 ? "s":"") +" are in the Baby PvP", 0; goto Timer; end; break; Timer: initnpctimer; } OnClock0000: // set the "PVP Square" map, based on day of the weeek switch(gettime(4)) { case 0: // Sunday case 1: // Monday set .pvp_square$, "guild_vs2"; break; case 2: // Tuesday case 3: // Wednesday set .pvp_square$, "guild_vs5"; break; case 4: // Thursday case 5: // Friday set .pvp_square$, "guild_vs4"; break; case 6: // Saturday set .pvp_square$, "guild_vs1-2"; break; } // items not allowed in PVP NoPotion setarray .NoPotion_ids[0], 607, 608, 7750, 501, 502, 503, 504, 526; // items not allowed in Non Donator PVP setarray .NoDonator_ids[0], 2410, 1530, 2629, 2630, 2462, 2410, 5013; end; } moscovia.gat,226,198,4 duplicate(Ultimate PvP Warper) Ultimate PvP Warper#1 871 alberta.gat,110,140,3 duplicate(Ultimate PvP Warper) Ultimate PvP Warper#3 871 // Kliwa aldebaran.gat,147,115,1 duplicate(Ultimate PvP Warper) Ultimate PvP Warper#4 871 // Kliwa amatsu.gat,207,86,3 duplicate(Ultimate PvP Warper) Ultimate PvP Warper#5 871 // Kliwa ayothaya.gat,155,117,2 duplicate(Ultimate PvP Warper) Ultimate PvP Warper#6 871 // Kliwa comodo.gat,206,80,4 duplicate(Ultimate PvP Warper) Ultimate PvP Warper#7 871 // Kliwa einbech.gat,198,83,4 duplicate(Ultimate PvP Warper) Ultimate PvP Warper#8 871 // Taas Kaliwa einbroch.gat,174,172,5 duplicate(Ultimate PvP Warper) Ultimate PvP Warper#9 871 // Taas Kaliwa geffen.gat,125,71,4 duplicate(Ultimate PvP Warper) Ultimate PvP Warper#10 871 gonryun.gat,162,120,4 duplicate(Ultimate PvP Warper) Ultimate PvP Warper#11 871 hugel.gat,89,151,5 duplicate(Ultimate PvP Warper) Ultimate PvP Warper#12 871 izlude.gat,134,90,4 duplicate(Ultimate PvP Warper) Ultimate PvP Warper#13 871 lighthalzen.gat,166,101,4 duplicate(Ultimate PvP Warper) Ultimate PvP Warper#14 871 louyang.gat,214,120,5 duplicate(Ultimate PvP Warper) Ultimate PvP Warper#15 871 xmas.gat,154,136,4 duplicate(Ultimate PvP Warper) Ultimate PvP Warper#16 871 morocc.gat,163,94,4 duplicate(Ultimate PvP Warper) Ultimate PvP Warper#17 871 payon.gat,148,226,4 duplicate(Ultimate PvP Warper) Ultimate PvP Warper#18 871 rachel.gat,135,115,4 duplicate(Ultimate PvP Warper) Ultimate PvP Warper#19 871 veins.gat,219,127,4 duplicate(Ultimate PvP Warper) Ultimate PvP Warper#20 871 yuno.gat,163,170,4 duplicate(Ultimate PvP Warper) Ultimate PvP Warper#21 871 umbala.gat,106,159,3 duplicate(Ultimate PvP Warper) Ultimate PvP Warper#22 871 poring_c02,139,81,4 duplicate(Ultimate PvP Warper) Ultimate PvP Warper#23 871 //==================Ultimate PVP Room Settings========================= //This should always be enable for a better Ultimate PVP Room Settings. //===================================================================== // Mapflags guild_vs2 mapflag pvp guild_vs2 mapflag nocommand guild_vs2 mapflag nobranch guild_vs5 mapflag pvp guild_vs5 mapflag nocommand guild_vs5 mapflag nobranch guild_vs4 mapflag pvp guild_vs4 mapflag nocommand guild_vs4 mapflag nobranch guild_vs1-2 mapflag pvp guild_vs1-2 mapflag nocommand guild_vs1-2 mapflag nobranch guild_vs3 mapflag pvp guild_vs3 mapflag nocommand guild_vs3 mapflag nobranch guild_vs1 mapflag pvp guild_vs1 mapflag nocommand guild_vs1 mapflag nobranch pvp_y_8-2 mapflag pvp pvp_y_8-2 mapflag nocommand pvp_y_8-2 mapflag nobranch 1@orcs mapflag pvp 1@orcs mapflag nocommand 1@orcs mapflag nobranch guild_vs3 mapflag pvp_nightmaredrop random,equip,300 guild_vs3 mapflag nocommand guild_vs3 mapflag nobranch //ordeal_1-2.gat mapflag nomemo //ordeal_1-2.gat mapflag nobranch //ordeal_1-2.gat mapflag noexp //ordeal_1-2.gat mapflag nodrop //ordeal_1-2.gat mapflag novending //ordeal_1-2.gat mapflag nowarp //ordeal_1-2.gat mapflag nowarpto //ordeal_1-2.gat mapflag noreturn So.. all i need just make a new txt file and save them in custom file?..? And reloadscript??..?? i thought must merger this into UVP 2... Quote Link to comment Share on other sites More sharing options...
Question
nexus1528
help I have a script that when a player kills another player they will getitem 7420 . or skulls in their inventory but I want this to be on pvp maps only and woe maps only . how to do it ? my pvp map is on bat_c02 ..
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.