Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-24-2003, 02:22 PM
sYnergy247 sYnergy247 is offline
Banned
sYnergy247's Avatar
Join Date: Jun 2003
Location: Scott Land USA(er..) Canada
Posts: 1,043
sYnergy247 is on a distinguished road
Send a message via AIM to sYnergy247 Send a message via Yahoo to sYnergy247
Unhappy Script For Forty-5

I can't figure out this script

//#CLIENTSIDE
if (created) {
// Initialize the attributes
showcharacter;
setcharprop #3,blue-head658.png;
setcharprop #C0,white;
setcharprop #C1,darkblue;
setcharprop #C2,darkblue;
setcharprop #C3,darkblue;
setcharprop #C4,darkblue;
setcharprop #2,no-shield.gif;
shieldpower = 1;
dir = 2;
message I like to get hit witch rocks and bushes and stuff so please do so!;
npcs[index].rupees ==100000l
}
if (waspelt) {
players[index].rupees +=1;
npcs[index].rupees -=1;
}

//added the npcs[index] in hope that it would show where the rupees came from but that did'nt work...On my server i will throw a bush at him and then it will show the rupee for half a second then it will dissapear...Please help
Reply With Quote
  #2  
Old 07-24-2003, 02:27 PM
protagonist protagonist is offline
Banned
protagonist's Avatar
Join Date: May 2003
Location: CAW
Posts: 5,586
protagonist is on a distinguished road
Send a message via AIM to protagonist Send a message via MSN to protagonist
Index is not a default variable. You don't need it. playerrupees will work for the player, and setting a this.rupees string for the NPC and modifying it will work for the NPC.
Reply With Quote
  #3  
Old 07-24-2003, 02:32 PM
sYnergy247 sYnergy247 is offline
Banned
sYnergy247's Avatar
Join Date: Jun 2003
Location: Scott Land USA(er..) Canada
Posts: 1,043
sYnergy247 is on a distinguished road
Send a message via AIM to sYnergy247 Send a message via Yahoo to sYnergy247
i just started scripting...I don't really get what you mean..sorry
Reply With Quote
  #4  
Old 07-24-2003, 02:39 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Instead of players[index].rupees, use playerrupees. Instead of npcs[index].rupees use this.rupees. That's what he said.
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #5  
Old 07-24-2003, 02:45 PM
sYnergy247 sYnergy247 is offline
Banned
sYnergy247's Avatar
Join Date: Jun 2003
Location: Scott Land USA(er..) Canada
Posts: 1,043
sYnergy247 is on a distinguished road
Send a message via AIM to sYnergy247 Send a message via Yahoo to sYnergy247
Red face dag...

Its still not working..

//#CLIENTSIDE
if (created) {
// Initialize the attributes
showcharacter;
setcharprop #3,blue-head658.png;
setcharprop #C0,white;
setcharprop #C1,darkblue;
setcharprop #C2,darkblue;
setcharprop #C3,darkblue;
setcharprop #C4,darkblue;
setcharprop #2,no-shield.gif;
shieldpower = 1;
dir = 2;
message I like to get hit witch rocks and bushes and stuff so please do so!;
this.rupees ==100000
}
if (waspelt) {
playerrupees +=1;
this.rupees -=1;
}

i changed the script to this....but it still does the same thing..Adds for a second then takes it away again..
Reply With Quote
  #6  
Old 07-24-2003, 02:49 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
this.rupees is a meaningless variable. You can't change player or NPC rupees on the clientside.
__________________
Reply With Quote
  #7  
Old 07-24-2003, 02:51 PM
sYnergy247 sYnergy247 is offline
Banned
sYnergy247's Avatar
Join Date: Jun 2003
Location: Scott Land USA(er..) Canada
Posts: 1,043
sYnergy247 is on a distinguished road
Send a message via AIM to sYnergy247 Send a message via Yahoo to sYnergy247
so...

so how can i do this then? *bows down* please help me
Reply With Quote
  #8  
Old 07-24-2003, 02:58 PM
Neoreno Neoreno is offline
Cerebrate
Neoreno's Avatar
Join Date: Aug 2001
Location: England
Posts: 1,663
Neoreno is on a distinguished road
Send a message via AIM to Neoreno
Well, you can offline, however. The "==" is only used in checks. Use a single "=" when setting a variable.
__________________

Quote:
Exitus Acta Probat: The Outcome Justifies the Deed.
Reply With Quote
  #9  
Old 07-24-2003, 03:00 PM
sYnergy247 sYnergy247 is offline
Banned
sYnergy247's Avatar
Join Date: Jun 2003
Location: Scott Land USA(er..) Canada
Posts: 1,043
sYnergy247 is on a distinguished road
Send a message via AIM to sYnergy247 Send a message via Yahoo to sYnergy247
k thanks
Reply With Quote
  #10  
Old 07-24-2003, 03:15 PM
sYnergy247 sYnergy247 is offline
Banned
sYnergy247's Avatar
Join Date: Jun 2003
Location: Scott Land USA(er..) Canada
Posts: 1,043
sYnergy247 is on a distinguished road
Send a message via AIM to sYnergy247 Send a message via Yahoo to sYnergy247
Server Options?

Could it not be working because of a server option that i have or don't have? I just got this server up yesterday...and this is the first time i've ever been in charge like this...is there anyway that the server options could be a problem?
Reply With Quote
  #11  
Old 07-24-2003, 03:17 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
It is not working because you cannot alter those variables on the clientside!
__________________
Reply With Quote
  #12  
Old 07-24-2003, 03:18 PM
protagonist protagonist is offline
Banned
protagonist's Avatar
Join Date: May 2003
Location: CAW
Posts: 5,586
protagonist is on a distinguished road
Send a message via AIM to protagonist Send a message via MSN to protagonist
You need to triggeraction.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:39 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.