budabeads Posted June 30, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 42 Reputation: 1 Joined: 02/16/12 Last Seen: August 8, 2012 Share Posted June 30, 2012 hello sir, i would like to request an npc. the npc will require you ti give him a TCG so that you can enter the PVP room.... and ofcoure you will have a TCG if you kill a player... just like betting... killing a player that rewards a TCG is solved... its like this... - script Sample -1,{ OnPCKillEvent: if ( strcharinfo(3) != "guild_vs3" ) end; if( rand(100) <= 100 ){ getitem 7227,1; } end; } but how about the entrance fee? Quote Link to comment Share on other sites More sharing options...
Emistry Posted June 30, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted June 30, 2012 prontera,155,181,5 script Sample 757,{ if( !countitem(7227) ) npctalk "You need to provide me some TCG to go in."; else{ delitem 7227,1; warp "prontera",155,181; } end; } Quote Link to comment Share on other sites More sharing options...
Euphy Posted June 30, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted June 30, 2012 Be careful with OnPCKillEvent. If you don't add a suicide check, it will cause serious exploits. if (killedrid == getcharid(3)) end; Quote Link to comment Share on other sites More sharing options...
budabeads Posted June 30, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 42 Reputation: 1 Joined: 02/16/12 Last Seen: August 8, 2012 Author Share Posted June 30, 2012 Thank You masters! all in all, i can have this? its a combination of our 3 scripts.... prontera,155,181,5 script Sample 757,{ if( !countitem(7227) ) npctalk "You need to provide me some TCG to go in."; else{ delitem 7227,1; warp "guild_vs3",0,0; } end; } OnPCKillEvent: if (killedrid == getcharid(3)) end; if ( strcharinfo(3) != "guild_vs3" ) end; if( rand(100) <= 100 ){ getitem 7227,1; } end; } Quote Link to comment Share on other sites More sharing options...
Question
budabeads
hello sir, i would like to request an npc. the npc will require you ti give him a TCG so that you can enter the PVP room....
and ofcoure you will have a TCG if you kill a player...
just like betting...
killing a player that rewards a TCG is solved...
its like this...
- script Sample -1,{
OnPCKillEvent:
if ( strcharinfo(3) != "guild_vs3" ) end;
if( rand(100) <= 100 ){
getitem 7227,1;
}
end;
}
but how about the entrance fee?
Link to comment
Share on other sites
3 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.