Jump to content
  • 0

PVP with TCG as an Entrance FEE


budabeads

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   1
  • Joined:  02/16/12
  • Last Seen:  

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


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


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;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

Be careful with OnPCKillEvent. If you don't add a suicide check, it will cause serious exploits.

if (killedrid == getcharid(3)) end;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  42
  • Reputation:   1
  • Joined:  02/16/12
  • Last Seen:  

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;

}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...