

gnashxalex
Members-
Posts
52 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by gnashxalex
-
When i add this event i got this error Who can help me to solve this?, Thanks in advance. [Warning]: script: buildin_getmapxy: Invalid type 0. [Debug]: Source (NPC): Monster Counting Game at prontera (155,181) [Debug]: (map_mapname2mapid) mapindex_name2id: Map "" not found in index list! [Debug]: (map_mapname2mapid) mapindex_name2id: Map "" not found in index list! [Error]: buildin_getmapxy: fatal error ! player not attached! [Debug]: Function: getmapxy (4 parameters): [Debug]: Data: variable name='.map$' index=0 [Debug]: Data: variable name='.npc_x' index=0 [Debug]: Data: variable name='.npc_y' index=0 [Debug]: Data: number value=1 [Debug]: Source (NPC): Monster Counting Game at prontera (155,181) Event made by Emistry. https://rathena.org/board/topic/98393-quests-games-monster-counting-game/ Monster Counting Game 1.2.txt
-
Quests, Games: Monster Counting Game
gnashxalex replied to Emistry's topic in Game, Event, Quest Script Releases
i got this errores when i add the script [Warning]: script: buildin_getmapxy: Invalid type 0. [Debug]: Source (NPC): Monster Counting Game at prontera (155,181) [Debug]: (map_mapname2mapid) mapindex_name2id: Map "" not found in index list! [Debug]: (map_mapname2mapid) mapindex_name2id: Map "" not found in index list! [Error]: buildin_getmapxy: fatal error ! player not attached! [Debug]: Function: getmapxy (4 parameters): [Debug]: Data: variable name='.map$' index=0 [Debug]: Data: variable name='.npc_x' index=0 [Debug]: Data: variable name='.npc_y' index=0 [Debug]: Data: number value=1 [Debug]: Source (NPC): Monster Counting Game at prontera (155,181) -
- script Versus -1,{ OnInit: //--Configuration set .System, 1; //Toggle PvP System (0:Disable|1:Enable) set .ServerType, 1; //Are you using TXT or SQL? (0:TXT|1:SQL) set .GMLevel, 100; //GM levels above or equal this level will be ignored by the system setarray .PvPMap$, "All"; //List all pvp maps here (Index 0:"All" to enable all maps) //PvP Ladder set .Top, 10; //What is the length of the list? set .Reset, 0; //Allow players to reset their PvP statistics? (0:Disable|1:Zeny|2:Cashpoint|3:Skull) set .ZenyFee, 0; //How much zeny you want to charge to reset their pvp stat? set .CashFee, 0; //How much cashpoint you want to charge to reset their pvp stat? set .SkullFee, 0; //How much skull you want to charge to reset their pvp stat? set .AnnouncerFee, 0; //How much cashpoint per announcer? (DotA announcer is set as default) //Reward Setting (Every Kill) set .MaxZeny, 1000000000; //What is the max zeny of the server? set .Zeny, 0; //Earn zeny each kill? (0:Disable) set .Cash, 0; //How much #CASHPOINT every kill? (0:Disable) set .Skull, 0; //Collect player's skull each kill? (0:Disable|1:Enable) setarray .ItemID, 0; //Get items each kill? (0:Disable) setarray .Amount, 0; //How many items per kill? //Penalty Setting set .Feed, 10; //How many kills before feeding is called? (10:Recommended) set .Penalty, 1; //What is the penalty for the feedee? (0:Disable|1:Kill Rollback|2:Server Kick|3:Server Block) set .Kick, 1; //Who to kick? (1:Feedee|2:Feeder|3:Both) set .Rollback, 10; //How many times should the kill count rollback when feeding is called? (10:Recommended) //Announcer Setting set .Broadcast, bc_map; //Where do you want to broadcast? ( bc_all | bc_map ) set .Streak, 1; //Show number of killing streak in broadcast? e.g. Ghost is Beyond Godlike(8) set .Multiple, 0; //Show number of multiple kill in broadcast? e.g. Makizushi just got an Ownage(5) set .Nemesis, 0; //Show number of nemesis in broadcast? e.g. Epoque is owning Jguy(9) set .Feeder, 0; //Show number of feed in broadcast? e.g. Cookies is feeding `KeiKun(10) set .RandKillWord, 1; //Randomize the kill words? e.g. Arcenciel "Kill Word" jTynne (0:Disable|Default:"pwned") setarray .KillWord$, "pwned", "killed"; //Enable above setting for this to work //Broadcast Color | See HexTable: http://johncfish.com/bggallery/otherchart/hextable.gif set .KColor$, "0xFFFF00"; //Kill Broadcast Color | e.g. Jguy pwned Mercurial set .KSColor$, "0xFFFF00"; //Killing Streak Broadcast Color | e.g. jTynne is on a Killing Spree set .MKColor$, "0x33FF00"; //Multiple Kill Broadcast Color | e.g. Mercurial just got a Double Kill set .ESColor$, "0xFF0000"; //End Streak Broadcast Color | e.g. BrianL just ended Jguy's Killing Spree set .NMColor$, "0x0099FF"; //Nemesis Broadcast Color | e.g. Xazax is owning Cookies set .PBColor$, "0xFF0000"; //Payback Broadcast Color | e.g. Makizushi just have a payback againts lilcooldude69 set .FDColor$, "0xFF00CC"; //Feeder Broadcast Color | e.g. Cookies is feeding Z3R0 //--Warning: Critical Setting | Killing Streaks and Multiple Kills Announcer setarray .KSDotA$, "is on a Killing Spree", "is Dominating", "has a Mega-Kill", "is Unstoppable", "is Wicked Sick", "has a M-m-m-m....Monster Kill", "is Godlike", "is Beyond Godlike"; setarray .KSHoN$, "is a Serial Killer", "is an Ultimate Warrior", "is Legendary", "is on an Onslaught!", "is Savage Sick", "is Dominating", "has a Bloodbath", "is Immortal"; //Took out #9. Champion of Newearth setarray .MKDotA$, "just got a Double Kill", "just got a Triple Kill", "just got an Ultra Kill", "is on a Rampage", "is Owning his enemies"; setarray .MKHoN$, "just got a Double Tap", "just got a Hat Trick", "just got an Quad Kill", "annihilated his enemies", "just got a Genocide"; setarray .ESDotA$, "Killing Spree", "Dominating", "Mega-Kill", "Unstoppable", "Wicked Sick", "Monster Kill", "Godlike", "Beyond Godlike"; setarray .ESHoN$, "Serial Killer", "Ultimate Warrior", "Legendary", "Onslaught", "Savage Sick", "Dominating", "Bloodbath", "Immortal"; //Took out #9. Champion of Newearth setarray .EMDotA$, "Double Kill", "Triple Kill", "Ultra Kill", "Rampage", "Ownage"; setarray .EMHoN$, "Double Tap", "Hat Trick", "Quad Kill", "Annihilation", "Genocide"; //--Warning: Fail Safe | Do Not Touch /* set .System, ( .System < 0 ) ? 0 : .System; set .ServerType, ( .ServerType < 0 ) ? 0 : .ServerType; set .Ladder, ( .Ladder < 0 ) ? 0 : .Ladder; set .Top, ( .Top < 0 ) ? 0 : .Top; //set .GMLevel, ( .GMLevel < 0 ) ? 0 : ( ( .GMLevel > 99 ) ? 99 : .GMLevel ); set .Reset, ( .Reset < 0 ) ? 0 : ( ( .Reset > 3 ) ? 3 : .Reset ); set .ZenyFee, ( .ZenyFee < 0 ) ? 0 : ( ( .ZenyFee > .MaxZeny ) ? .MaxZeny : .ZenyFee ); set .CashFee, ( .CashFee < 0 ) ? 0 : .CashFee; set .SkullFee, ( .SkullFee < 0 ) ? 0 : .SkullFee; set .Zeny, ( .Zeny < 0 ) ? 0 : ( ( .Zeny > .MaxZeny ) ? .MaxZeny : .Zeny ); set .Cash, ( .Cash < 0 ) ? 0 : .Cash; if( .Feed < 1){ set .Feed, 0; } if( .Penalty > 3){ set .Penalty, 3; } if( .Penalty < 1){ set .Penalty, 0; } if( .Rollback < 1){ set .Rollback, 0; } if( .Streak > 1){ set .Streak, 1; } if( .Streak < 1){ set .Streak, 0; } if( .Multiple > 1){ set .Multiple, 1; } if( .Multiple < 1){ set .Multiple, 0; } if( .Nemesis > 1){ set .Nemesis, 1; } if( .Nemesis < 0){ set .Nemesis, 0; } if( .Feeder > 1){ set .Feeder, 1; } if( .Feeder < 1){ set .Feeder, 0; } if( .RandKillWord > 1 ) set .RandKillWord, 1; if( .RandKillWord < 0 ) set .RandKillWord, 0;*/ //SQL Bits query_sql ( "CREATE TABLE IF NOT EXISTS `pvp_rank` ("+ "`char_id` int(11) NOT NULL,"+ "`account_id` int(11) NOT NULL,"+ "`char` varchar(30) NOT NULL,"+ "`kill` int(11) NOT NULL,"+ "`death` int(11) NOT NULL,"+ "`kdr` varchar(30) NOT NULL,"+ "`killingstreak` int(11) NOT NULL,"+ "`multikill` int(11) NOT NULL,"+ "`killingspree` int(11) NOT NULL,"+ "`dominating` int(11) NOT NULL,"+ "`megakill` int(11) NOT NULL,"+ "`unstoppable` int(11) NOT NULL,"+ "`wickedsick` int(11) NOT NULL,"+ "`monsterkill` int(11) NOT NULL,"+ "`godlike` int(11) NOT NULL,"+ "`beyondgodlike` int(11) NOT NULL,"+ "`doublekill` int(11) NOT NULL,"+ "`triplekill` int(11) NOT NULL,"+ "`ultrakill` int(11) NOT NULL,"+ "`rampage` int(11) NOT NULL,"+ "`ownage` int(11) NOT NULL,"+ "`nemesiskill` int(11) NOT NULL,"+ "`feedcount` int(11) NOT NULL,"+ "PRIMARY KEY (`char_id`)"+ ") ENGINE=MyISAM;" ); end; OnPCKillEvent: if( .System ) { if( getgmlevel() >= .GMLevel ) end; if( !compare( .PvPMap$[0], "All" ) ) for( set .@i, 0; .@i < ( getarraysize(.PvPMap$) - 1 ); set .@i, .@i + 1 ) if( strcharinfo(3) != .PvPMap$[.@i] ) end; if( @nm == .Feed && .Penalty ) { dispbottom "Penalized"; callsub OnClearData; setarray .@penalty_cmd$[2], "kick", "block"; switch ( .Penalty ) { case 1: callsub OnRollback; break; default: callsub OnRollback; if( .Kick & 1 ) atcommand "@"+.@penalty_cmd$[.Penalty]+" "+strcharinfo(0); if( .Kick & 2 ) atcommand "@"+.@penalty_cmd$[.Penalty]+" "+rid2name(killedrid); break; } } //Rewards Per-kill. if( @nm < .Feed ) { if( .Zeny && ( ( Zeny + .Zeny ) < .MaxZeny ) ) set Zeny, Zeny + .Zeny; if( .Cash ) dispbottom "[Point System] +1 Cashpoint."; set #CASHPOINT, #CASHPOINT + .Cash; if( .Skull ) getnameditem 7420, rid2name(killedrid); for( set .@i, 0; .@i < getarraysize(.ItemID); set .@i, .@i + 1 ) if(.ItemID) getitem .ItemID[.@i], .Amount[.@i]; } //announce strcharinfo(0)+" "+( .RandKillWord ? .KillWord$[ rand( getarraysize( .KillWord$ ) ) ] : "pwned" )+" "+rid2name(killedrid)+"'s head", .Broadcast, .KColor$; set Kill, Kill + 1; if( @ks < 10 ) set @ks, @ks + 1; if( @mk < 6 ) set @mk, @mk + 1; if( !NemesisKilled ) set NemesisKilled, killedrid; if( NemesisKilled == killedrid ) set @nm, @nm + 1; deltimer "Versus::OnMKReset"; addtimer 18000, "Versus::OnMKReset"; callsub OnRecordStreak; dispbottom "KS: "+@ks; callsub OnAnnounce; } end; OnPCDieEvent: if( .System ) { if( getgmlevel() >= .GMLevel || killerrid < 2000000 || killerrid > 3000000 ) end; if( !compare( .PvPMap$[0], "All" ) ) { for(set .@i, 0; .@i < getarraysize(.PvPMap$); set .@i, .@i + 1) if( strcharinfo(3) == .PvPMap$[.@i] ) { set Death, Death + 1; break; } } else set Death, Death + 1; callsub OnDeath; } end; OnPCLogoutEvent: if( .System ) { if( getgmlevel() >= .GMLevel ) end; set NemesisKilled, 0; if( .ServerType && Kill ) query_sql("REPLACE INTO `pvp_rank` (`char_id`, `account_id`, `char`, `kill`, `death`, `kdr`, `killingstreak`, `multikill`, `nemesiskill`, `feedcount`,`killingspree`, `dominating`, `megakill`, `unstoppable`, `wickedsick`, `monsterkill`, `godlike`, `beyondgodlike`, `doublekill`, `triplekill`, `ultrakill`, `rampage`, `ownage`) VALUES ("+getcharid(0)+","+getcharid(3)+", '"+rid2name(getcharid(3))+"', "+Kill+", "+Death+", '"+callfunc("KDR_Calc", Kill, ( !Death ? 1 : Death ))+"', "+KillingStreak+", "+MultiKill+", "+NemesisKill+", "+FeedCount+", "+KillingSpree+", "+Dominating+", "+MegaKill+", "+Unstoppable+", "+WickedSick+", "+MonsterKill+", "+Godlike+", "+BeyondGodlike+", "+DoubleKill+", "+TripleKill+", "+UltraKill+", "+Rampage+", "+Ownage+")"); } end; OnRecordStreak: if( @ks > 2 ) { set KillingStreak, KillingStreak + 1; switch( @ks ) { case 3: set KillingSpree, KillingSpree + 1; break; case 4: set Dominating, Dominating + 1; break; case 5: set MegaKill, MegaKill + 1; break; case 6: set Unstoppable, Unstoppable + 1; break; case 7: set WickedSick, WickedSick + 1; break; case 8: set MonsterKill, MonsterKill + 1; break; case 9: set Godlike, Godlike + 1; break; case 10: set BeyondGodlike, BeyondGodlike + 1; break; default: break; } } if( @mk > 1 ) { set MultiKill, MultiKill + 1; switch( @mk ) { case 2: set DoubleKill, DoubleKill + 1; break; case 3: set TripleKill, TripleKill + 1; break; case 4: set UltraKill, UltraKill + 1; break; case 5: set Rampage, Rampage + 1; break; case 6: set Ownage, Ownage + 1; break; default: break; } } if( @nm > 3 && @nm < .Feed ) set NemesisKill, NemesisKill + 1; if( @nm >= .Feed ) set FeedCount, FeedCount + 1; return; OnAnnounce: if( @ks == 1 && Kill == 1 ) { announce strcharinfo(0)+( !#Announcer ? " drew first blood" : " got bloodlust" ), .Broadcast, .KSColor$; soundeffectall ""+#Announcer+"_KS"+1+".wav", 0, strcharinfo(3); } if( @ks > 2 ) { announce strcharinfo(0)+" "+( !#Announcer ? .KSDotA$[@ks - 3] : .KSHoN$[@ks - 3] )+" "+((.Streak)?"("+@ks+")":"")+"", .Broadcast, .KSColor$; soundeffectall ""+#Announcer+"_KS"+@ks+".wav", 0, strcharinfo(3); } if( @mk > 1 ) { announce strcharinfo(0)+" "+( !#Announcer ? .MKDotA$[@mk - 2] : .MKHoN$[@mk - 2] )+" "+((.Multiple)?"("+@mk+")":"")+"", .Broadcast, .MKColor$; sleep2 1500; soundeffectall ""+#Announcer+"_MK"+@mk+".wav", 0, strcharinfo(3); } if( @nm > 3 && @nm < .Feed ) { announce strcharinfo(0)+" is owning "+rid2name(NemesisKilled)+" "+((.Nemesis)?"("+@nm+")":"")+"", .Broadcast, .NMColor$; sleep2 2000; if( #Announcer > 0 ) { soundeffectall #Announcer+"_Nemesis.wav", 0, strcharinfo(3); } else { soundeffectall "1_Nemesis.wav", 0; } } if( @nm >= .Feed ) { //announce rid2name(NemesisKilled)+" is feeding "+strcharinfo(0)+" "+((.Feeder)?"("+@nm+")":"")+"", .Broadcast, .FDColor$; sleep2 1500; soundeffectall "Feeder.wav", 0, strcharinfo(3); } return; OnDeath: if( @ks > 2 ) announce rid2name( killerrid )+" just ended "+strcharinfo(0)+"'s "+( !#Announcer ? .ESDotA$[@ks - 3] : .ESHoN$[@ks - 3] )+" "+((.Streak)?"("+@ks+")":"")+"", .Broadcast, .ESColor$; if( @nm > 3 ) { soundeffectall #Announcer+"_Payback.wav", 0, rid2name(killedrid); announce rid2name( killerrid )+" just got payback against "+strcharinfo(0)+" "+((.Nemesis)?"("+@nm+")":"")+"", .Broadcast, .PBColor$; } callsub OnClearData; return; OnMKReset: set @mk, 0; end; OnClearData: sleep2 1000; set NemesisKilled, 0; set @ks, 0; set @mk, 0; set @nm, 0; return; OnRollback: if( .Zeny ) set Zeny, Zeny - (.Zeny * .Rollback); if( .Cash ) { dispbottom "[Point System] -"+(.Cash * .Rollback)+" Cashpoint."; set #CASHPOINT, #CASHPOINT - ( .Cash * .Rollback ); } if( .Skull ) delitem 7420, .Rollback; for( set .@i, 0; .@i < getarraysize(.ItemID); set .@i, .@i + 1 ) if( .ItemID ) delitem .ItemID[.@i], .Amount[.@i] * .Rollback; set Kill, ( ( Kill - .Rollback ) > 0 ) ? ( Kill - .Rollback ) : 0; set KillingSpree, ( ( KillingSpree - 1 ) > 0 ) ? ( KillingSpree - 1 ) : 0; set Dominating, ( ( Dominating - 1 ) > 0 ) ? ( Dominating - 1 ) : 0; set MegaKill, ( ( MegaKill - 1 ) > 0 ) ? ( MegaKill - 1 ) : 0; set Unstoppable, ( ( Unstoppable - 1 ) > 0 ) ? ( Unstoppable - 1 ) : 0; set WickedSick, ( ( WickedSick - 1 ) > 0 ) ? ( WickedSick - 1 ) : 0; set MonsterKill, ( ( MonsterKill - 1 ) > 0 ) ? ( MonsterKill - 1 ) : 0; set Godlike, ( ( Godlike - 1 ) > 0 ) ? ( Godlike - 1 ) : 0; set BeyondGodlike, ( ( BeyondGodlike - 1 ) > 0 ) ? ( BeyondGodlike - 1 ) : 0; set DoubleKill, ( ( DoubleKill - 1 ) > 0 ) ? ( DoubleKill - 1 ) : 0; set TripleKill, ( ( TripleKill - 1 ) > 0 ) ? ( TripleKill - 1 ) : 0; set UltraKill, ( ( UltraKill - 1 ) > 0 ) ? ( UltraKill - 1 ) : 0; set Rampage, ( ( Rampage - 1 ) > 0 ) ? ( Rampage - 1 ) : 0; set Ownage, ( ( Ownage - 1 ) > 0 ) ? ( Ownage - 1 ) : 0; set NemesisKill, ( ( NemesisKill - (.Rollback - 3) ) > 0 ) ? ( NemesisKill - (.Rollback - 3) ) : 0; announce "[Anti-Feed] Your kill count has been rollbacked "+.Rollback+" times.",bc_self,0xFF0000; return; //Added Functions function broadcast { return ( ( getarg(0) ) ? bc_all : bc_map ); } } morocc,162,107,3 script Loki 467,{ mes "[Loki]"; mes "What can I do for you today?"; switch( select( "Player Ranking:My PvP Statistic:Announcer Setting" ) ) { case 1: //Player Ranking next; if( getvariableofnpc(.ServerType, "Versus") ) { mes "[Top "+getvariableofnpc(.Top, "Versus")+" PvP Players]"; mes "^0000FFKill^000000 | ^FF0000Death^000000 | ^FF22FFKDR^000000 | ^00FF00SK^000000 | ^666666MK^000000"; query_sql "SELECT `char`, `kill`, `death`, `kdr`, `killingstreak`, `multikill` FROM `pvp_rank` ORDER BY `pvp_rank`.`kill` DESC LIMIT "+getvariableofnpc(.Top, "Versus")+"", .@char$, .@kill, .@death, .@kdr$, .@sk, .@mk; for(set .@i, 0; .@i < getarraysize(.@char$); set .@i, .@i + 1){ mes .@i+1+". "+.@char$[.@i]+" ^0000FF"+.@kill[.@i]+"^000000 ^FF0000"+.@death[.@i]+"^000000 ^FF22FF"+.@kdr$[.@i]+"^000000 ^00FF00"+.@sk[.@i]+"^000000 ^666666"+.@mk[.@i]+"^000000 "; } close; } else { mes "Top "+getvariableofnpc(.Top, "Versus")+" ranking is not yet implemented for this server type."; } case 2: //PvP Statistic next; mes strcharinfo(0)+"'s PvP Statistic"; mes "^666666Kill:^000000 "+Kill+" ^666666Death:^000000 "+Death+" ^666666KDR:^000000 "+callfunc("KDR_Calc", Kill, ( !Death ? 1 : Death ))+"^000000"; mes "^666666Killing Streak:^000000 "+KillingStreak+" ^666666Multi-Kills:^000000 "+MultiKill+""; switch(select("Killing Streak:Multi-Kill Streak:Nemesis Streak:"+(getvariableofnpc(.Reset, "Versus")?"Reset":"")+"")){ case 1: //Killing Streak next; setarray .LSDotA$[0], ""+KillingSpree+"", ""+Dominating+"", ""+MegaKill+"", ""+Unstoppable+"", ""+WickedSick+"", ""+MonsterKill+"", ""+Godlike+"", ""+BeyondGodlike+""; mes "Killing Streak Stats"; switch(#Announcer){ case 0: for(set .@i, 0; .@i < getarraysize(.LSDotA$); set .@i, .@i + 1){ mes "^666666"+getvariableofnpc(.ESDotA$[.@i], "Versus")+"^000000: "+ .LSDotA$[.@i]; } close; default: for(set .@i, 0; .@i < getarraysize(.LSDotA$); set .@i, .@i + 1){ mes "^666666"+getvariableofnpc(.ESHoN$[.@i], "Versus")+"^000000: "+ .LSDotA$[.@i]; } close; } close; case 2: //Multi-Kill next; setarray .LMDotA$[0], ""+DoubleKill+"", ""+TripleKill+"", ""+UltraKill+"", ""+Rampage+"", ""+Ownage+""; mes "Multi-Kill Stats"; switch(#Announcer){ case 0: for(set .@i, 0; .@i < getarraysize(.LMDotA$); set .@i, .@i + 1){ mes "^666666"+getvariableofnpc(.EMDotA$[.@i], "Versus")+"^000000: "+ .LMDotA$[.@i]; } close; default: for(set .@i, 0; .@i < getarraysize(.LMDotA$); set .@i, .@i + 1){ mes "^666666"+getvariableofnpc(.EMHoN$[.@i], "Versus")+"^000000: "+ .LMDotA$[.@i]; } close; } case 3: //Nemesis next; mes "Nemesis Stat"; mes "^666666Nemesis Kill^000000: "+NemesisKill; mes "^666666Feed Count^000000: "+FeedCount; close; case 4: //Reset Stat next; set .Reset, getvariableofnpc(.Reset, "Versus"); set .ZenyFee, getvariableofnpc(.ZenyFee, "Versus"); set .CashFee, getvariableofnpc(.CashFee, "Versus"); set .SkullFee, getvariableofnpc(.SkullFee, "Versus"); mes "[Loki]"; mes "Are you sure you want to reset your PvP Statistics?"; if(.Reset == 1){ mes "^FF0000Reset Fee:^000000 "+.ZenyFee+" Zeny."; } if(.Reset == 2){ mes "^FF0000Reset Fee:^000000 "+.CashFee+" Cashpoints."; } if(.Reset == 3){ mes "^FF0000Reset Fee:^000000 "+.SkullFee+" Skulls."; } switch(select("No:Yes")) { case 1: close; case 2: switch(.Reset) { case 0: break; case 1: if(Zeny < .ZenyFee) { next; mes "[Loki]"; mes "You don't have enough Zeny."; close; } set Zeny, Zeny - .ZenyFee; break; case 2: if(#CASHPOINTS < .CashFee) { next; mes "[Loki]"; mes "You don't have enough Cashpoints."; close; } set #CASHPOINTS, #CASHPOINTS - .CashFee; break; case 3: if(countitem(7420) < .SkullFee) { next; mes "[Loki]"; mes "You don't have enough Skull."; close; } delitem 7420, .SkullFee; break; default: break; } if( getvariableofnpc(.ServerType, "Versus") ) { query_sql "DELETE FROM `pvp_rank` WHERE `pvp_rank`.`char_id` = "+getcharid(0)+""; } callsub OnPvPReset; announce "[Loki] Your PvP Statistic has been reset.",bc_self,0xFF0000; close; } close; } close; case 3: //Announcer Setting next; mes "[Loki]"; mes "What kind of announcer you want to use?"; if( getvariableofnpc( .AnnouncerFee, "Versus" ) ) set .AnnouncerFee, getvariableofnpc(.AnnouncerFee, "Versus"); L_Announce: switch(select(""+((#Announcer == 0)?"^FF0000DotA^000000":"DotA")+":"+((#Announcer == 1)?"^FF0000HoN^000000":"HoN")+":"+((#Announcer == 2)?"^FF0000Ms. Pudding^000000":"Ms. Pudding")+":"+((#Announcer == 3)?"^FF0000Flamboyant^000000":"Flamboyant")+":"+((#Announcer == 4)?"^FF0000English^000000":"English")+":"+((#Announcer == 5)?"^FF0000Balls of Steel^000000":"Balls of Steel")+":"+((#Announcer == 6)?"^FF0000BreakyCPK^000000":"BreakyCPK")+"")) { case 1: //DotA if(#Announcer == 0){ goto L_Announce; } soundeffect "0_KS1.wav", 0; set #Announcer, 0; announce "[Loki] DotA announcer has been configured to your account.",bc_self,0xFF0000; close; case 2: //HoN if(#Announcer == 1){ goto L_Announce; } if((.AnnouncerFee) && (!#Hon)) { next; mes "[Loki]"; mes "Do you want to purchase HoN announcer for "+.AnnouncerFee+" Cashpoints?"; switch(select("No:Yes")) { case 1: close; case 2: if(#CASHPOINTS < .AnnouncerFee) { next; mes "[Loki]"; mes "You don't have enough Cashpoints."; close; } set #CASHPOINTS, #CASHPOINTS - .AnnouncerFee; set #Hon, 1; } } soundeffect "1_KS1.wav", 0; set #Announcer, 1; announce "[Loki] HoN announcer has been configured to your account.",bc_self,0xFF0000; close; case 3: //Ms. Pudding if(#Announcer == 2){ goto L_Announce; } if((.AnnouncerFee) && (!#MsPudding)) { next; mes "[Loki]"; mes "Do you want to purchase Ms. Pudding announcer for "+.AnnouncerFee+" Cashpoints?"; switch(select("No:Yes")){ case 1: close; case 2: if(#CASHPOINTS < .AnnouncerFee) { next; mes "[Loki]"; mes "You don't have enough Cashpoints."; close; } set #CASHPOINTS, #CASHPOINTS - .AnnouncerFee; set #MsPudding, 1; } } soundeffect "2_KS1.wav", 0; set #Announcer, 2; announce "[Loki] Ms. Pudding announcer has been configured to your account.",bc_self,0xFF0000; close; case 4: //Flamboyant if(#Announcer == 3){ goto L_Announce; } if((.AnnouncerFee) && (!#Flamboyant)) { next; mes "[Loki]"; mes "Do you want to purchase Flamboyant announcer for "+.AnnouncerFee+" Cashpoints?"; switch(select("No:Yes")) { case 1: close; case 2: if(#CASHPOINTS < .AnnouncerFee) { next; mes "[Loki]"; mes "You don't have enough Cashpoints."; close; } set #CASHPOINTS, #CASHPOINTS - .AnnouncerFee; set #Flamboyant, 1; } } soundeffect "3_KS1.wav", 0; set #Announcer, 3; announce "[Loki] Flamboyant announcer has been configured to your account.",bc_self,0xFF0000; close; case 5: //English if(#Announcer == 4){ goto L_Announce; } if((.AnnouncerFee) && (!#English)) { next; mes "[Loki]"; mes "Do you want to purchase English announcer for "+.AnnouncerFee+" Cashpoints?"; switch(select("No:Yes")) { case 1: close; case 2: if(#CASHPOINTS < .AnnouncerFee) { next; mes "[Loki]"; mes "You don't have enough Cashpoints."; close; } set #CASHPOINTS, #CASHPOINTS - .AnnouncerFee; set #English, 1; } } soundeffect "4_KS1.wav", 0; set #Announcer, 4; announce "[Loki] English announcer has been configured to your account.",bc_self,0xFF0000; close; case 6: //Balls of Steel if(#Announcer == 5){ goto L_Announce; } if((.AnnouncerFee) && (!#BallsofSteel)) { next; mes "[Loki]"; mes "Do you want to purchase Balls of Steel announcer for "+.AnnouncerFee+" Cashpoints?"; switch(select("No:Yes")) { case 1: close; case 2: if(#CASHPOINTS < .AnnouncerFee) { next; mes "[Loki]"; mes "You don't have enough Cashpoints."; close; } set #CASHPOINTS, #CASHPOINTS - .AnnouncerFee; set #BallsofSteel, 1; } } soundeffect "5_KS1.wav", 0; set #Announcer, 5; announce "[Loki] Balls of Steel announcer has been configured to your account.",bc_self,0xFF0000; close; case 7: //BreakyCPK if(#Announcer == 6){ goto L_Announce; } if((.AnnouncerFee) && (!#BreakyCPK)) { next; mes "[Loki]"; mes "Do you want to purchase BreakyCPK announcer for "+.AnnouncerFee+" Cashpoints?"; switch(select("No:Yes")) { case 1: close; case 2: if(#CASHPOINTS < .AnnouncerFee) { next; mes "[Loki]"; mes "You don't have enough Cashpoints."; close; } set #CASHPOINTS, #CASHPOINTS - .AnnouncerFee; set #BreakyCPK, 1; } } soundeffect "6_KS1.wav", 0; set #Announcer, 6; announce "[Loki] BreakyCPK announcer has been configured to your account.",bc_self,0xFF0000; close; default: close; } end; } close; OnPvPReset: set Kill, 0; set Death, 0; set KillingStreak, 0; set MultiKill, 0; set KillingSpree, 0; set Dominating, 0; set MegaKill, 0; set Unstoppable, 0; set WickedSick, 0; set MonsterKill, 0; set Godlike, 0; set BeyondGodlike, 0; set DoubleKill, 0; set TripleKill, 0; set UltraKill, 0; set Rampage, 0; set Ownage, 0; set NemesisKill, 0; set FeedCount, 0; return; } when i change setarray .PvPMap$, "All"; //List all pvp maps here (Index 0:"All" to enable all maps) to setarray .PvPMap$, "guild_vs3"; //List all pvp maps here (Index 0:"All" to enable all maps) the announce doesnt work... help, please.
-
Hello, How i can make this script to only enchant in the last right slot, I'm trying but I can't get it to work as I want //===== rAthena Script ======================================= //= saders enchant npc //===== By: ================================================== //= Sader1992 //https://rathena.org/board/profile/30766-sader1992/ //===== Current Version: ===================================== //= 2.0 //===== Compatible With: ===================================== //= rAthena Project //https://rathena.org/board/files/file/3602-saders-enchantment-npc/ //https://github.com/sader1992/sader_scripts //===== Description: ========================================= //============================================================ //============================================================ prontera,154,173,5 script sader enchant 998,{ callsub s_check_menu; end; s_check_menu: if(.s_only_vip == 1 && vip_status(1)){ mes "this service only for vip"; close; } if (BaseLevel < .s_level_required[0] || BaseLevel > .s_level_required[1]){ mes "Your level is too low or too high."; mes " "; mes "Minimum level "+.s_level_required[0]+"."; mes "Maximum level "+.s_level_required[1]+"."; close; } callsub s_start_menu; end; s_start_menu: mes "Hello!"; mes "Do you want to enchant you items!"; mes "I am the best enchanter in the world!"; next; if (.s_zeny > 0) { mes "this will cost you " + .s_zeny + " Zeny only!"; } if (.item_is_required == 1) { mes "and an enchantment orb"; } mes "i will do my best to enchant it Successfully!"; mes "but remember"; mes "There is luck in this work too."; next; mes "please if you have items same"; mes "as the item you want to enchant"; mes "but them in the storage and come back to me!"; next; set s_all_selected,0; set s_orb_selected,0; set selected_orb_id ,0; set s_slot_selected,0; set remove_orbs,0; set selected_orb_size,0; set s_item_refine,0; if(.remove_enchant == 1){ callsub s_select_menu; }else{ callsub s_select_armor; } close; end; s_select_menu: mes "so what you want to do!"; if(.enable_the_shop == 1){ switch(select("Enchant:Remove Enchant:The Items you can enchant")){ case 2: remove_orbs = 1; case 3: callsub Q_shop; } }else{ switch(select("Enchant:Remove Enchant")){ case 2: remove_orbs = 1; } } callsub s_select_armor; end; s_select_armor: next; mes "please select the item you want to enchant"; for(.@i=0; .@i<getarraysize(.s_all$); .@i++) if(getequipid(.s_all_loc[.@i])>-1) { set .@armor_menu$, .@armor_menu$ + .s_all$[.@i] + " - [ ^E81B02" + getitemname(getequipid(.s_all_loc[.@i])) + "^000000 ]:"; }else{ set .@armor_menu$, .@armor_menu$ + .s_all$[.@i] + " - [ ^D6C4E8" + "No Equip" + "^000000 ]:"; } set s_all_selected, select(.@armor_menu$) -1; if(getequipid(.s_all_loc[s_all_selected])< 0) { mes "you don't have item equiped there"; close; } if (countitem(getequipid(.s_all_loc[s_all_selected])) > 1){ mes "you have more then one item"; mes "from the item that you want to enchant"; close; } s_item_refine = getequiprefinerycnt(.s_all_loc[s_all_selected]); callsub s_specific_gears; end; s_specific_gears: if( getd(".specific_" + .s_all$[s_all_selected] + "s") ==1){ for(.@i=0;.@i<getarraysize(getd("." + .s_all$[s_all_selected] + "s$"));.@i++){ if(getequipid(.s_all_loc[s_all_selected]) == atoi(getd("." + .s_all$[s_all_selected] + "s$["+.@i+"]"))){ .@good_to_go = 1; } } }else{ for(.@i=0;.@i<getarraysize(.black_list$);.@i++){ if(getequipid(.s_all_loc[s_all_selected]) == atoi(.black_list$[.@i])){ .@black_list_item = 1; } } .@good_to_go = 1; } if(!.@good_to_go || .@black_list_item == 1){ mes "sorry"; mes " i can't enchant this item."; close; } if(remove_orbs == 1){callsub s_select_remove;} if(.chosse_orb == 1){callsub s_select_orb;}else{callsub s_random_orb;} end; Q_shop: switch(select("Weapons:Armors:Shields:Germents:Shoses:Accessarys:Uppers:Middels:Lowers")){ case 1: callshop "enchantable_items_Weapon",1; break; case 2: callshop "enchantable_items_Armor",1; break; case 3: callshop "enchantable_items_Shield",1; break; case 4: callshop "enchantable_items_Germent",1; break; case 5: callshop "enchantable_items_Shose",1; break; case 6: callshop "enchantable_items_Accessary",1; break; case 7: callshop "enchantable_items_Upper",1; break; case 8: callshop "enchantable_items_Middel",1; break; case 9: callshop "enchantable_items_Lower",1; break; } end; s_select_orb: next; mes "select the orb you want"; for(.@i=0; .@i<getarraysize(getd("." + .s_all$[s_all_selected] + "$")); .@i++) set .@orb_menu$, .@orb_menu$ + getitemname(atoi(getd("." + .s_all$[s_all_selected] + "$["+.@i+"]"))) + ":"; set s_orb_selected, select(.@orb_menu$) -1; selected_orb_id = getd("." + .s_all$[s_all_selected] + "$["+s_orb_selected+"]"); callsub s_select_slot; end; s_select_slot: next; mes "which slot ?"; .@card0 = getequipcardid(.s_all_loc[s_all_selected],0); .@card1 = getequipcardid(.s_all_loc[s_all_selected],1); .@card2 = getequipcardid(.s_all_loc[s_all_selected],2); .@card3 = getequipcardid(.s_all_loc[s_all_selected],3); for(.@i=getd(".slot_count_" + .s_all$[s_all_selected]); .@i<4; .@i++) if(getequipcardid(.s_all_loc[s_all_selected],.@i)!= null) { set .@slot_menu$, .@slot_menu$ + " [ ^E81B02" + getitemname(getequipcardid(.s_all_loc[s_all_selected],.@i)) + "^000000 ]:"; }else{ set .@slot_menu$, .@slot_menu$ + " [ ^D6C4E8" + "Empty" + "^000000 ]:"; } set s_slot_selected, select(.@slot_menu$) -1; if(.s_enchant_overwrite == 0){ if(getequipcardid(.s_all_loc[s_all_selected],s_slot_selected) > 0){ mes "you already have orb in this slot"; close; } } callsub s_enchant_progress; end; s_enchant_progress: .@card0 = getequipcardid(.s_all_loc[s_all_selected],0); .@card1 = getequipcardid(.s_all_loc[s_all_selected],1); .@card2 = getequipcardid(.s_all_loc[s_all_selected],2); .@card3 = getequipcardid(.s_all_loc[s_all_selected],3); if (Zeny < .s_zeny) { mes "Sorry, but you don't have enough zeny."; close; } if(.item_is_required == 1){ if (countitem(selected_orb_id) < 1){ mes"you don't have enchant orb"; close; } } close2; specialeffect2 EF_MAPPILLAR; progressbar "ffff00",.progress_time; set Zeny, Zeny-.s_zeny; if(.item_is_required == 1){delitem selected_orb_id,1;} if (rand(100) < .success_chanse[s_slot_selected]) callsub s_enchant_success; else callsub s_brack; end; s_brack: specialeffect2 155; mes "I am sorry"; mes "We did Fail"; specialeffect2 EF_PHARMACY_FAIL; if (rand(100) < .brack_chance){ set .@item, getequipid(.s_all_loc[s_all_selected]); delitem .@item,1; mes "and it broke!!"; specialeffect EF_SUI_EXPLOSION; } close; end; s_enchant_success: .@card0 = getequipcardid(.s_all_loc[s_all_selected],0); .@card1 = getequipcardid(.s_all_loc[s_all_selected],1); .@card2 = getequipcardid(.s_all_loc[s_all_selected],2); .@card3 = getequipcardid(.s_all_loc[s_all_selected],3); mes "We did it!"; specialeffect2 154; setd(".@card" + s_slot_selected, selected_orb_id); set .@item, getequipid(.s_all_loc[s_all_selected]); delitem .@item,1; getitem2 .@item, 1, 1, s_item_refine, 0, .@card0, .@card1, .@card2, .@card3; equip .@item; close; end; s_select_remove: .@card0 = getequipcardid(.s_all_loc[s_all_selected],0); .@card1 = getequipcardid(.s_all_loc[s_all_selected],1); .@card2 = getequipcardid(.s_all_loc[s_all_selected],2); .@card3 = getequipcardid(.s_all_loc[s_all_selected],3); next; mes "this will remove all the cards and orbs inside the item!"; if (.s_zeny_remove > 0) { mes "this will cost you " + .s_zeny_remove + " Zeny."; } mes "are you sure?"; switch(select("NO:Yes")){ case 2: mes "for the last time!"; mes "are you sure?"; switch(select("NO:Yes")){ if (Zeny < .s_zeny_remove) { mes "Sorry, but you don't have enough zeny."; close; } case 2: specialeffect2 EF_REPAIRWEAPON; set .@item, getequipid(.s_all_loc[s_all_selected]); delitem .@item,1; getitem2 .@item, 1, 1, s_item_refine, 0, 0, 0, 0, 0; set Zeny, Zeny-.s_zeny_remove; } } close; end; s_random_orb: selected_orb_size = rand(getarraysize(getd("." + .s_all$[s_all_selected] + "$"))); selected_orb_id = getd("." + .s_all$[s_all_selected] + "$["+selected_orb_size+"]"); callsub s_select_slot; end; OnInit: //--------------------------------------------------------------// //--------------------------------------------------------------// //-------------------- configuration -----------------------// //--------------------------------------------------------------// //--------------------------------------------------------------// //--------------------------------------------------------------// //if you want to remove one from the menu you need to remove it down too!! /or add //--------------------------------------------------------------// setarray .s_all$,"Upper"; setarray .s_all_loc,EQI_HEAD_TOP; //--------------------------------------------------------------// //Orbs IDs (Note : Shield = left hand so the weapon on the left hand count as Shield too! //--------------------------------------------------------------// setarray .Upper$,4700,4710,4720,4730,4740,4750; //Accessary //--------------------------------------------------------------// //if you want to put specific IDs for kind of gear put it to 1 //--------------------------------------------------------------// .specific_Uppers = 0; //--------------------------------------------------------------// //if specific put the IDs here //--------------------------------------------------------------// setarray .Weapons$,1601,1201,1204,1207,1210,1213,1216,1219,1222,1247,1248,1249; //right handed weapons setarray .Armors$,2301,2303,2305,2307,2307,2309,2312,2314,2316,2321,2323,2325,2328,2330,2332; //Armors setarray .Shields$,2101,2103,2105,2107,2113,2117; //Shields and left hand weapons setarray .Germents$,2512,2501,2503,2505; //Germents setarray .Shoses$,2416,2401,2403,2405,2411; //Shoses setarray .Accessarys$,2628,2608,2609,2612,2613,2627; //Accessarys setarray .Uppers$,2206,2208,2211,2216; //Uppers setarray .Middels$,2218,2241; //Middels setarray .Lowers$,2628,2206; //Lowers //--------------------------------------------------------------// //if not specific put the black list IDs here (if you want //--------------------------------------------------------------// setarray .black_list$,2335,2338,2340,2341; //--------------------------------------------------------------// //here you can make a specific slot number for each kind //0 = all 4 slot ,1 = last 3 slot ,2 = last 2 slot ,3 = last 1 slot //--------------------------------------------------------------// .slot_count_Upper = 3; //--------------------------------------------------------------// //other configuration //--------------------------------------------------------------// setarray .s_level_required,0,175; //the level required to use the npc .s_only_vip = 0; //if you want only vip to use it put it to 1 setarray .success_chanse,100,0,0,0; //success chanse [1st_slot_chanse,2nd_slot_chanse,3rd_slot_chanse,4th_slot_chanse] .s_zeny = 10000; //if you don't want zeny requirment set it to 0 .s_zeny_remove = 100000; //this for enchantment reset .item_is_required = 0; //if you want the orb it self to be required 1 = yes , 0 = no .s_enchant_overwrite = 1; //if 1 then you can overwrite the enchant .progress_time = 1; //the time that needed to wait until the socket end .chosse_orb = 0; //0 = random ,1 = yes .brack_chance = 0; //the chanse that it will brack if it fail .remove_enchant = 0; //0 = no ,1 = yes //--------------------------------------------------------------// //this will only show the items that the npc can enchant in a shop but no one can buy from it as long as you don't give them the value //--------------------------------------------------------------// .enable_the_shop = 1; //--------------------------------------------------------------// //Do not edit here //--------------------------------------------------------------// npcshopdelitem "enchantable_items_Weapon",512; npcshopdelitem "enchantable_items_Armor",512; npcshopdelitem "enchantable_items_Shield",512; npcshopdelitem "enchantable_items_Germent",512; npcshopdelitem "enchantable_items_Shose",512; npcshopdelitem "enchantable_items_Accessary",512; npcshopdelitem "enchantable_items_Upper",512; npcshopdelitem "enchantable_items_Middel",512; npcshopdelitem "enchantable_items_Lower",512; for (.@i = 0; .@i < getarraysize(.Weapons$); .@i++) npcshopadditem "enchantable_items_Weapon", atoi(.Weapons$[.@i]),1; for (.@i = 0; .@i < getarraysize(.Armors$); .@i++) npcshopadditem "enchantable_items_Armor", atoi(.Armors$[.@i]),1; for (.@i = 0; .@i < getarraysize(.Shields$); .@i++) npcshopadditem "enchantable_items_Shield", atoi(.Shields$[.@i]),1; for (.@i = 0; .@i < getarraysize(.Germents$); .@i++) npcshopadditem "enchantable_items_Germent", atoi(.Germents$[.@i]),1; for (.@i = 0; .@i < getarraysize(.Shoses$); .@i++) npcshopadditem "enchantable_items_Shose", atoi(.Shoses$[.@i]),1; for (.@i = 0; .@i < getarraysize(.Accessarys$); .@i++) npcshopadditem "enchantable_items_Accessary", atoi(.Accessarys$[.@i]),1; for (.@i = 0; .@i < getarraysize(.Uppers$); .@i++) npcshopadditem "enchantable_items_Upper", atoi(.Uppers$[.@i]),1; for (.@i = 0; .@i < getarraysize(.Middels$); .@i++) npcshopadditem "enchantable_items_Middel", atoi(.Middels$[.@i]),1; for (.@i = 0; .@i < getarraysize(.Lowers$); .@i++) npcshopadditem "enchantable_items_Lower", atoi(.Lowers$[.@i]),1; end; } - pointshop enchantable_items_Weapon -1,#YOU_CAN_ENCHANT_Weapons,512:1; - pointshop enchantable_items_Armor -1,#YOU_CAN_ENCHANT_Armors,512:1; - pointshop enchantable_items_Shield -1,#YOU_CAN_ENCHANT_Shields,512:1; - pointshop enchantable_items_Germent -1,#YOU_CAN_ENCHANT_Germents,512:1; - pointshop enchantable_items_Shose -1,#YOU_CAN_ENCHANT_Shoses,512:1; - pointshop enchantable_items_Accessary -1,#YOU_CAN_ENCHANT_Accessarys,512:1; - pointshop enchantable_items_Upper -1,#YOU_CAN_ENCHANT_Uppers,512:1; - pointshop enchantable_items_Middel -1,#YOU_CAN_ENCHANT_Middels,512:1; - pointshop enchantable_items_Lower -1,#YOU_CAN_ENCHANT_Lowers,512:1;
-
the announce is char name has killed mob name at map name but i want to announce like this [char name] has killed 'mob name' at 'map name' but each time i try to put [char name] it gives me an error in the mapserver
-
Thanks, would it be possible to do that only announce when the mvp dies in his official spawn?
-
it is possible to only announce this on mvp official spawn? not all mvps killed and the map the monster was killed - script MVP_Announce#Balfear -1,{ OnNPCKillEvent: if (getmonsterinfo(killedrid,MOB_MVPEXP) != 0) if (getcharid(1)) announce "MVP ("+ getmonsterinfo(killedrid,MOB_NAME)+") killed by '"+ strcharinfo(0) +"' from party '"+ strcharinfo(1) +"'.",bc_yellow|bc_all; else announce "MVP ("+ getmonsterinfo(killedrid,MOB_NAME)+") killed by '"+ strcharinfo(0) +"'.",bc_yellow|bc_all; end; }
-
where i can find these db?
-
i mean announce only when the mvp is killed in his official map or announce "El MVP ("+ getmonsterinfo(killedrid,MOB_NAME)+") ha sido asesinado por '"+ strcharinfo(0) +"' de la party '"+ strcharinfo(1) +"'The MvP was in Map "x".",bc_yellow|bc_all; Any help is greatly appreciated, thanks I will try it and tell you what happens How can I put the name inside? Example [cookie] has killed 'Poring" at 'prt_fild08' With that it would be perfect, I have time trying but it gives error; / I have about 30 minutes trying but in all the ways I've tried it gives me an error PD: now its working how i want, Thanks Mabuhay and BeWan Now i will see what happen with the atroces tried many ways with the problem with atroce still nothing. Here you were right the simplest solution I see is to create several atroce with different IDs or what do you suggest?
-
- script MVP_Announce -1,{ OnNPCKillEvent: if (getmonsterinfo(killedrid,MOB_MVPEXP) != 0) if (getcharid(1)) announce "El MVP ("+ getmonsterinfo(killedrid,MOB_NAME)+") ha sido asesinado por '"+ strcharinfo(0) +"' de la party '"+ strcharinfo(1) +"'.",bc_yellow|bc_all; else announce "El MVP ("+ getmonsterinfo(killedrid,MOB_NAME)+") ha sido asesinado por '"+ strcharinfo(0) +"'.",bc_yellow|bc_all; end; } can someone help me to announce only on mvps official spawn map? and add map on the announce, thanks. ?
-
It works perfectly. next time I will see the mapserver, thank you very much.
-
I want to make this, when dont detect if ( ( getd( "$GROOM" + .@i ) && getcharid(2) == getd( "$GROOM" + .@i ) ) || ( getd( "$GROOMB" + .@i ) && getcharid(2) == getd( "$GROOMB" + .@i ) ) ) { do else dispbottom "your guild dont have a guild house" im trying this but dont work - script script_gh -1,{ OnAtCmd: if(getmapflag(strcharinfo(3),mf_town)){ for( set .@i , 0; .@i <= 30; set .@i , .@i + 1 ) { if ( ( getd( "$GROOM" + .@i ) && getcharid(2) == getd( "$GROOM" + .@i ) ) || ( getd( "$GROOMB" + .@i ) && getcharid(2) == getd( "$GROOMB" + .@i ) ) ) { warp "sanctum",56,61; end; else{ dispbottom "Your guild does not own a room"; end; } } OnInit: bindatcmd("guildhouse","script_gh::OnAtCmd"); end; } }
-
-
-