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 04-19-2006, 04:20 AM
Coolkid77742 Coolkid77742 is offline
Registered User
Join Date: Aug 2005
Posts: 79
Coolkid77742 is an unknown quantity at this point
Unhappy Eh Help with my script please?

Ok I was trying to make a simple body switch script so if my player touchs theres he has there nick and outfit.... and the other player has mine... yeah they switch outfits...
This is my attempt:

function onPlayerTouchsMe() {
player.colors[0]=this.colors[0];
player.colors[1]=this.colors[1];
player.colors[2]=this.colors[2];
player.colors[3]=this.colors[3];
player.colors[4]=this.colors[4];
player.bodyimg=this.bodyimg;
player.headimg=this.headimg;
player.shieldimg=this.shieldimg;
}

but it wont work
__________________
]
Reply With Quote
  #2  
Old 04-19-2006, 04:49 AM
Moondeath_2 Moondeath_2 is offline
"..."
Moondeath_2's Avatar
Join Date: Jan 2006
Location: Far Far Away.
Posts: 238
Moondeath_2 is an unknown quantity at this point
Send a message via AIM to Moondeath_2 Send a message via MSN to Moondeath_2 Send a message via Yahoo to Moondeath_2
Where are the this.strings added into all of this?
__________________
Aim: DarkFireXZ3
Email: [email protected] or [email protected]
Common Location: Unholy Nation
Gscript, Playerworld Rules, Support Center
Reply With Quote
  #3  
Old 04-19-2006, 05:02 AM
Coolkid77742 Coolkid77742 is offline
Registered User
Join Date: Aug 2005
Posts: 79
Coolkid77742 is an unknown quantity at this point
gs2
__________________
]
Reply With Quote
  #4  
Old 04-19-2006, 05:16 AM
Moondeath_2 Moondeath_2 is offline
"..."
Moondeath_2's Avatar
Join Date: Jan 2006
Location: Far Far Away.
Posts: 238
Moondeath_2 is an unknown quantity at this point
Send a message via AIM to Moondeath_2 Send a message via MSN to Moondeath_2 Send a message via Yahoo to Moondeath_2
I know it's gs2 but you only posted this and I noticed you didn't have any of these this.strings in the script so it's returned to NULL.
__________________
Aim: DarkFireXZ3
Email: [email protected] or [email protected]
Common Location: Unholy Nation
Gscript, Playerworld Rules, Support Center
Reply With Quote
  #5  
Old 04-19-2006, 02:32 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Moondeath_2
I know it's gs2 but you only posted this and I noticed you didn't have any of these this.strings in the script so it's returned to NULL.
Quote:
Originally Posted by Coolkid77742
so if my player touchs theres he has there nick and outfit....
He's obviously setting them if he's trying to make the player mimic the look.

Have you tried changing it from serverside to clientside, or vice-versa?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #6  
Old 04-25-2006, 08:35 PM
Sage_Shadowbane Sage_Shadowbane is offline
Graal Developer
Sage_Shadowbane's Avatar
Join Date: Mar 2004
Posts: 585
Sage_Shadowbane will become famous soon enough
Make sure you have the script clientsided so it will directly effect the players client, and also.. if you havnt already (which from your post it seems you havnt) make sure you are setting the variables to a color in the onCreated() function.
Reply With Quote
  #7  
Old 04-25-2006, 08:41 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
the player's 'image' can be changed both serverside and clientside.
params can only be set serverside though.
Reply With Quote
  #8  
Old 04-26-2006, 04:31 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by xAndrewx
params can only be set serverside though.
I don't think that's true. I'm pretty sure params can be set both clientside and serverside, hence the reason you can use artmoney to altar your look on Graal Kingdoms.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #9  
Old 04-26-2006, 05:22 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Quote:
Originally Posted by ApothiX
I don't think that's true. I'm pretty sure params can be set both clientside and serverside, hence the reason you can use artmoney to altar your look on Graal Kingdoms.
Ah yes, my mistake
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 12:11 AM.


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