Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-29-2011, 08:42 PM
AlexanderK AlexanderK is offline
Registered User
AlexanderK's Avatar
Join Date: Mar 2006
Location: Germany
Posts: 79
AlexanderK is on a distinguished road
Send a message via MSN to AlexanderK
player.swordimg with custom swords

I just switched my custom swords from player.attr[3] to player.swordimg and it doesn't work at all.

Setting the swordimg (player.swordimg=...) serverside will do nothing and setting it clientside will only change it for the player, all the others still see sword1.png.

Do the swords have to have special names? Right now they're named like "sorna_sword_sword1.png". Is there any other way to do this?
Reply With Quote
  #2  
Old 03-29-2011, 08:44 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
try player.setSword("swordimg.png", 0); maybe? Serverside.
__________________
Reply With Quote
  #3  
Old 03-29-2011, 08:53 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Are you using the V6 beta?
Graphics set Clientside in V6 don't seem to be saved Serverside.
Reply With Quote
  #4  
Old 03-29-2011, 08:58 PM
AlexanderK AlexanderK is offline
Registered User
AlexanderK's Avatar
Join Date: Mar 2006
Location: Germany
Posts: 79
AlexanderK is on a distinguished road
Send a message via MSN to AlexanderK
Quote:
Originally Posted by cbk1994 View Post
try player.setSword("swordimg.png", 0); maybe? Serverside.
That's not working with my filenames.
player.setSword("swordimg.png", 0); seems to set player.swordimg to NULL for every string, player.setSword("swordimg.png", 1); works for strings like "sword2.png" or "sword3.png", but not with "sorna_sword_sword1.png".
Quote:
Originally Posted by ffcmike View Post
Are you using the V6 beta?
Graphics set Clientside in V6 don't seem to be saved Serverside.
That's why I'm trying to set them on the Serverside.
Reply With Quote
  #5  
Old 03-29-2011, 09:02 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Add them as swords in folder config.

PHP Code:
sword     graphics/swords/sorna_sword-*.png 
__________________
Reply With Quote
  #6  
Old 03-29-2011, 09:04 PM
AlexanderK AlexanderK is offline
Registered User
AlexanderK's Avatar
Join Date: Mar 2006
Location: Germany
Posts: 79
AlexanderK is on a distinguished road
Send a message via MSN to AlexanderK
Quote:
Originally Posted by cbk1994 View Post
Add them as swords in folder config.

PHP Code:
sword     graphics/swords/sorna_sword-*.png 
It works now! Thank you!!!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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:57 AM.


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