Thread: Money for all!
View Single Post
  #7  
Old 07-28-2007, 11:23 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
No, what I meant was have a WNPC like a "-System" weapon, and on the serverside:
PHP Code:
function onActionserverside() {
if (
params[0]=="addrupees"findplayer(params[1]).rupees+=params[2];

Then in the level NPC, do something along the lines of:

PHP Code:
//#CLIENTSIDE
function onWasShot(){
  
this.chat "Hit!";
  
triggerserver("gui","-System","addrupees",player.account,int(random(0,20)));
  
sleep(.5);
  
this.chat "Shoot Me!";

I THINK you can triggerserver from a clientside of a level NPC, I'm not sure though.
Reply With Quote