Thread: Money for all!
View Single Post
  #8  
Old 07-29-2007, 08:10 PM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
Quote:
Originally Posted by DustyPorViva View Post
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.
omg, so freaking complicated x.x

Quote:
I THINK you can triggerserver from a clientside of a level NPC, I'm not sure though.
nope
__________________
**FLIP OUT**
Reply With Quote