ScriptUO
Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: Chops on December 05, 2012, 12:42:58 AM
-
Hello guys, first let me say this is not my script, even the modification isn't mine.
I have been using it in a freeshard, and so far it has some problems that I would like to solve, but with my limited knowledge of scripting I am asking for your help.
1) Every so often there's a problem with the npc that gives the bod to the player, it will just stay around the npc and nothing happens, could I do something to improve that? Like adding more npc ids or something?
2)In this shard we have to wait 6 hours between bods, and there seems to be an option for chaging the time in the script, thing is that it doesn't work, at least I can be able to just put 6 hours between bods.
[admin]Deleted attached code, TM
You can attach snippets where you think you may be having issues. And link to an existing script for source reference. Thanks.[/admin]
-
We have a rule that scripts are not to be posted here without the permission of the author first. So currently I believe you are in violation of our rules by posting this script. Please go back and read our rules thank you.
Rulez !! (http://www.scriptuo.com/index.php?topic=447.0)
-
I am sorry, ok here is the part of the script I think I am having a problem with.
Sometimes it will work perfectly, other times it won't even try to click on a tailor or blacksmith npc and get the bod, I think it may have something to do with the npc type, or the range? I tried changing the blacksmith and tailor locations but I keep having this problem :(
sub findNpc
namespace push
namespace local findNpc
set !type %1
set !previous %2
set !arraySize 0
set !element 1
_findNpc:
finditem IS_HS G_10
ignoreitem #findid
if #findkind <> -1
{
if #findrep = 7
{
event property #findid
if !type = tailor
{
if guild notin #property
{
if weaver in #property || tailor in #property
{
set !npc . !element #findid
set !arraySize !arraySize + 1
set !element !element + 1
}
}
}
if !type = smith
{
if guild notin #property
{
{
if Vlad in #property || blacksmith in #property || armourer in #property
{
set !npc . !element #findid
set !arraySize !arraySize + 1
set !element !element + 1
}
}
}
goto _findNpc
}
ignoreitem reset
set !npc none
for !i 1 !arraySize
{
if !npc . !i <> !previous
{
set !npc !npc . !i
set !i !arraySize
}
}
if !npc = none
set #result !previous
else
set #result !npc
namespace pop
return #result