![]() |
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 ? |
Quote:
Try using: setsword(player.swordimg,20); |
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.
|
Quote:
|
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. |
obj.swordpower is capped at 4, and obj.shieldpower at 3, when it comes to scripts.
|
I've always had problems with swordpower. Try doing something like this:
PHP Code:
|
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. |
Quote:
|
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. |
no one? :(
|
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:
|
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? |
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.
|
Quote:
|
Quote:
|
Well it works fine for other people. The server owner can change attributes and keep the lv4 sword, nothing happens to him, and many others.
|
Should I put this in a "bugs" section of the forum, or is there an actual way to fix this?
|
Isn't there a server option for max sword power?
|
Quote:
That thread of mine is old by the way. |
Quote:
|
You probably need to set normaladminscanchangegralats to true, otherwise only level 4 RC's can alter sword/shield/gralats etc.
|
It is set to true, and the server owner can't even set me or hiro a lv4 sword, but apparently it's only me, hiro, and maybe 1 or 2 more players that have had this problem, everyone else is fine.
|
help stefan.... :(
|
Really, help stefan or someone who knows.... please....
This is a rather annoying issue. |
| All times are GMT +2. The time now is 01:30 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.