Musika Posted March 21, 2014 Posted March 21, 2014 Can i pls request of an NPC that is like: 1. You need to be Maxed Level and in a guild that is Level 50 to access the NPC. 2. When 5 or more Guild members are present, the GUILD LEADER needs to pay 100 TCG [7227] for example. 3. Then they will choose from the menu the name of the MVP that they want to hunt. 4. Once they've chosen an MVP to Hunt, they will all be warped into the Exact location of the MVP. Ex: Ifrit (thor_v03 x,y) 5. Then when the MVP is killed by them, it will announce: The "guildname" guild have killed "MVPname" in "Mapname" "x,y". thanks.. Quote
Patskie Posted March 21, 2014 Posted March 21, 2014 I don't have enough time to make this though i can give you a hint on how to do this : 1. if ( BaseLevel < 255 ) { mes "You must be level 255 in order to talk to me"; close; } if ( !getcharid( 2 ) ) { mes "You don't have guild"; close; } query_sql "SELECT `guild_lv` FROM `guild` WHERE `guild_id` = '"+ getcharid( 2 ) +"'",.@guild_lv; if ( .@guild_lv < 50 ) { mes "Must be guild level 50 in order to talk to me"; close; } 2. getguildmember getcharid( 2 ), 1; getguildmember getcharid( 2 ), 2; for ( .@i = 0; .@i < $@guildmembercount; .@i++ ) if ( isloggedin( $@guildmemberaid[ .@i ], $@guildmembercid[ .@i ] ) ) .@count++; if ( .@count < 5 ) { mes "Must have 5 guild members online"; close; } else { if ( countitem( 7227 ) < 100 ) { mes "Must have 100x " + getitemname( 7227 ); close; } delitem 7227, 100; } 3, 4, 5 : setarray .Mobs[0],1832; setarray .Map$[0],"thor_v03"; setarray .XCoord[0],150; setarray .YCoord[0],150; .size = getarraysize( .Mobs ); .@menu$ = ""; for ( .@i = 0; .@i < .size; .@i++ ) { .@menu$ += getmonsterinfo( .Mobs[ .@i ] , 0 ); .@menu$ += ":"; } .@s = select( .@menu$ ) - 1; mes "So you want to hunt " + getmonsterinfo( .Mobs[ .@s ], 0 ) + "?"; next; if ( select( "Yes:No" ) - 1 ) close; warp .Map$[ .@s ], .XCoord[ .@s ], .YCoord[ .@s ]; monster .Map$[ .@s ], .XCoord[ .@s ], .YCoord[ .@s ], "--ja--", .Mobs[ .@s ], 1, strnpcinfo( 3 )+"::OnMVPKill"; close; OnMVPKill: getmapxy( .@map$, .@x, .@y, 0 ); announce "The " + getguildname( getcharid( 2 ) ) + " guild have killed " + getmonsterinfo( killedrid, 0 ) + " in " + .@map$ + " " + .@x + " " + .@y + ".",0; end; Dunno though if this will post an error since i am not in my laptop to make this 1 Quote
Musika Posted March 21, 2014 Author Posted March 21, 2014 THANK YOU SOOOO MUCH SIR PATSKIE!!!.... I'll give this a try and i'll inform you asap if there are any errors.. Quote
Question
Musika
Can i pls request of an NPC that is like:
1. You need to be Maxed Level and in a guild that is Level 50 to access the NPC.
2. When 5 or more Guild members are present, the GUILD LEADER needs to pay 100 TCG [7227] for
example.
3. Then they will choose from the menu the name of the MVP that they want to hunt.
4. Once they've chosen an MVP to Hunt, they will all be warped into the Exact location of the MVP.
Ex: Ifrit (thor_v03 x,y)
5. Then when the MVP is killed by them, it will announce:
The "guildname" guild have killed "MVPname" in "Mapname" "x,y".
thanks..
2 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.