Author Topic: Raziel's modified Bod Runner  (Read 2636 times)

0 Members and 1 Guest are viewing this topic.

Offline ChopsTopic starter

  • Jr. Member
  • **
  • Posts: 75
  • Activity:
    0%
  • Reputation Power: 1
  • Chops has no influence.
  • Respect: +9
  • Referrals: 0
    • View Profile
Raziel's modified Bod Runner
« on: December 05, 2012, 12:42:58 AM »
0
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]
« Last Edit: December 05, 2012, 08:04:29 AM by TrailMyx »

Offline Masscre

  • Gran Master Jester !!
  • Scripthack
  • *
  • Posts: 4615
  • Activity:
    0%
  • Reputation Power: 55
  • Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!
  • Gender: Male
  • Air Guitar Commander !!
  • Respect: +144
  • Referrals: 1
    • View Profile
Re: Raziel's modified Bod Runner
« Reply #1 on: December 05, 2012, 07:35:18 AM »
0
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 !!

Offline ChopsTopic starter

  • Jr. Member
  • **
  • Posts: 75
  • Activity:
    0%
  • Reputation Power: 1
  • Chops has no influence.
  • Respect: +9
  • Referrals: 0
    • View Profile
Re: Raziel's modified Bod Runner
« Reply #2 on: December 08, 2012, 01:40:47 AM »
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 :(

Code: [Select]
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

Tags: