Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-11-2009, 08:08 PM
Soala Soala is offline
Ideas on Fire
Soala's Avatar
Join Date: Jun 2007
Location: In my head
Posts: 3,208
Soala is a jewel in the roughSoala is a jewel in the rough
Raising swordpower above level 4 via script.

So, it's come to light that I am in need of automatically setting a player's swordpower via a script, which may raise it higher than 4. However, it has come to my attention that I can only raise it to level 4 via the script, and raising it otherwise has to be done in that players attributes.

Is there a way of using player.swordpower = # or any other method via a script that I can use to do this ?
Reply With Quote
  #2  
Old 01-11-2009, 09:24 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
Quote:
Originally Posted by alexandralove View Post
So, it's come to light that I am in need of automatically setting a player's swordpower via a script, which may raise it higher than 4. However, it has come to my attention that I can only raise it to level 4 via the script, and raising it otherwise has to be done in that players attributes.

Is there a way of using player.swordpower = # or any other method via a script that I can use to do this ?
I've never had any success with player.swordpower, clientside or serverside.

Try using:
setsword(player.swordimg,20);
Reply With Quote
  #3  
Old 01-11-2009, 10:13 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
From what I know, the max level is indeed 4. So the only way that I can think you for you to be able to do it, is create a custom health system and a custom sword system.
Reply With Quote
  #4  
Old 01-11-2009, 10:16 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
Quote:
Originally Posted by Sage_Shadowbane View Post
From what I know, the max level is indeed 4. So the only way that I can think you for you to be able to do it, is create a custom health system and a custom sword system.
No, swordlevels range from -20 to 20. Though this depends on if the server has healingswords set in serveroptions, as well as the max sword level.
Reply With Quote
  #5  
Old 01-11-2009, 10:26 PM
jami_jamie jami_jamie is offline
Registered User
jami_jamie's Avatar
Join Date: Jan 2006
Posts: 9
jami_jamie is on a distinguished road
Well, the maxsword limit is set on 20, and healswords is set to true.

Before I asked Soala to post this I tried setsword(player.swordimg, 7), but to no avail.

I thought the sword level of 4 was an old limit, but it seems it's still in place...

*EDIT*

I can set swords above level four in attributes, I always have been able to. It's only via script, such as player.swordpower = 5, that a problem actually arises, and it just ignores the setting of it altogether and leaves it on its current swordpower.
Reply With Quote
  #6  
Old 01-12-2009, 05:03 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
obj.swordpower is capped at 4, and obj.shieldpower at 3, when it comes to scripts.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #7  
Old 01-12-2009, 06:27 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
I've always had problems with swordpower. Try doing something like this:
PHP Code:
temp.sword player.swordimg;
player.swordimg "swordX.png";
player.swordpower X;
player.swordimg temp.sword
Replace X with the swordpower. Unsure if it works above 4.
Reply With Quote
  #8  
Old 10-23-2009, 07:34 PM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
I know this is kind of old, but none of this works on my server at all to even set the swordpower to 4. I have healingswords true and swordpower 4 in server options too.
Even the chest wont work for lv 4 sword. -_-
on some instances, the sword will set, with a new chest, but if you set ANY player attributes in rc, it resets to 1.
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote
  #9  
Old 10-25-2009, 02:29 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by sssssssssss View Post
I know this is kind of old, but none of this works on my server at all to even set the swordpower to 4. I have healingswords true and swordpower 4 in server options too.
Even the chest wont work for lv 4 sword. -_-
on some instances, the sword will set, with a new chest, but if you set ANY player attributes in rc, it resets to 1.
Sounds to me like you have a Weapon NPC constantly setting it to 1. I suggest using "/npc scan weapons swordpower" on RC and see if it yields any results.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #10  
Old 10-25-2009, 04:42 PM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Nothing found in the scan. I dont think anything is in any npc setting it to 1, because if, after having a lv4 sword and setting attributes, the only way to get back to a lv3 sword is to set the swordimg to sword3.png and then swordpower to 3, then it will stay.

It's awfully strange. Now we notice it's only happening to certain people, because others have lv4, and we changed their attributes, and thing happens to them.
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote
  #11  
Old 10-28-2009, 03:04 AM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
no one?
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote
  #12  
Old 10-28-2009, 03:12 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
I'm not sure if there's a difference or not but, "/npc scan weapons whatever"
doesn't work for me but, "/scriptscan weapons whatever" does.
__________________
Quote:
Reply With Quote
  #13  
Old 10-28-2009, 04:46 AM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Quote:
Scanning for 'swordpower' in weapons:
Could not find any matching script.
Still nothing. It's very strange. It doesnt set back to lv1 unless, and only if, I set player attributes in rc, even if i dont actually change anything. This is why I'm thinking something weird is going on beyond any weapons, npc, or class setting it, besides the fact I know they arn't because I've searched them auto and manually, and i made most of the weapons on right now.
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote
  #14  
Old 11-03-2009, 09:46 PM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
I wish this thread wasen't in here b/c most people don't check it.
Cant even set it in player attributes to lv4, even if i set the sword img to sword4.png too.
Any other ideas?
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote
  #15  
Old 11-03-2009, 09:56 PM
maximus_asinus maximus_asinus is offline
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,746
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
Could this be part of an old security feature within the client itself? I think a long while back there was security measures put in place to prevent players from 'hacking' themselves a level 4 sword. I am not sure if it was exclusive to Classic, or if it was coded into the client, or if I'm not thinking clearly at all and what I'm recalling didn't actually happen.
__________________
Save Classic!
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 06:03 PM.


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