Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Ketchup

Pages: 1 [2] 3 4 ... 10
16
Script Debug / Re: run from a mob
« on: November 18, 2015, 04:39:45 AM »
seems to be just what I needed, thanks Crome! now to see if I can add it in!

17
Script Debug / Re: run from a mob
« on: November 18, 2015, 04:02:58 AM »
Check my Doom Artisan script for Freeshards. I have there a routine for run away from mobiles :)
thanks, I'll give it a look now

18
Script Debug / Re: run from a mob
« on: November 18, 2015, 01:10:49 AM »
I have the rail already made, just need to finish the sub that makes it run from an unwanted monster but unsure how to go about it

19
Script Debug / Re: run from a mob
« on: November 17, 2015, 05:30:04 PM »
yeah my rail leaves the area just unsure how to get it to work, would it be possible for you to turn it into a sub for me please? I'm sure if I see it complete it will click in my head and I won't appear so silly :)

20
Script Debug / Re: run from a mob
« on: November 17, 2015, 08:00:17 AM »
that's the first thing I did haha, but that's to recall and then the enemy rating bit confuses the hell out of me, I just want it to run a sub I have if it see's a certain type of mob I have listed

21
Script Debug / run from a mob
« on: November 17, 2015, 06:36:16 AM »
I'm trying to add something to my script project but I have no idea how to go about this, I'm trying to add something in that if it seems a mob type (RB_UB) it runs away using the sub leave dungeon anyone know a quick way to do this? I have added the things I know below...

set %runawaymobs RB_UB

finditem %runawaymobs G_10

gosub leavedungeon

22
Script Debug / Re: Hiding and closing corpses
« on: November 17, 2015, 06:17:09 AM »
I've messed around with it a bit but currently everything I have tried doesn't work

23
Script Debug / Hiding and closing corpses
« on: November 07, 2015, 08:43:01 AM »
I have these two subs but I'm not sure how to go about closing and hiding the corpse after I've finished looting, if anyone could add it in and show me how it's done I would be grateful!
Thanks!
Code: [Select]
;--------------------------------------------------------------
;--------------------------------------------------------------
sub loot
  finditem YFM G_2
  if #findkind <> -1
  {
    set %mobs_killed %mobs_killed + 1
    set %corpse #findid
    if %skin = #true  && %training_mode = #false
    {
      if %use_war_cleaver = #true
        set %skin_tool %cleaverid
      set #lobjectid %skin_tool
      event macro 17 0
      target
      set #ltargetid %corpse
      event macro 22 0
      wait 17
    }
    if %loot_gold = #false && %loot = N/A
    {
      ignoreitem %corpse
      return
    }
    set #lobjectid %corpse
    event macro 17 0
    wait 5
    gosub wait_gump container_gump 144_212 3
    if #result = #false
      return
    wait 5
    set %loot_container #contid
    wait 13
    ignoreitem %corpse
  }
  if #findkind = -1
    return
  gosub grab_items
return
;--------------------------------------------------------------
;--------------------------------------------------------------
sub grab_items
  if %loot_gold = #true
  {
    wait 4
    finditem POF C_ , %loot_container
    if #findkind <> -1
    {
      exevent drag #findid #findstack
      wait 13
      exevent dropc #backpackid
      wait 13
    }
  }
  finditem * C_ , %loot_container
  for %i 1 #findcnt
  {
    finditem %loot C_ , %loot_container
    if #findkind <> -1
    {
      exevent drag #findid #findstack
      wait 13
      exevent dropc #backpackid
      wait 13
    }
    finditem %stackables C_ , %loot_container
    if #findkind <> -1
    {
      exevent drag #findid #findstack
      wait 13
      exevent dropc #backpackid
      wait 13
    }
  }
  if %skin = #true  && %use_war_cleaver <> #true
  {
lloop:
    gosub weight_check
    wait 2
    while #true
    {
      finditem EEG C_ , %loot_container
      if #findkind <> -1
      {
        set #lid #findcnt
        if #weight > %weight_before_split
        {
          set %damount #findstack / 2
          if #findstack <= 15
            set %damount #findstack
        }
        else
          set %damount #findstack
        exevent drag #findid %damount
        wait 14
        exevent dropc #backpackid
        wait 15
      }
      if #findkind = -1
        break
      wait 5
      finditem kag C_ , #backpackid
      set #lobjectid #findid
      event macro 17 0
      target   2s
      finditem eeg C_ , #backpackid
      set #ltargetid #findid
      event macro 22 0
      wait 5
      wait 10
    }
  }
return
;--------------------------------------------------------------
;--------------------------------------------------------------

24
Script Debug / Addition to this sub please!
« on: November 06, 2015, 05:11:44 AM »
I'm trying to add something to this script that re-arms a weapon with more than 15 durability after it removes one for being low on durability
firstly I'd add this to the top of my script %weapons and add the list of weps I'd like rearmed by type or ID either is fine, I know this script removes armor too but I can check that myself and repair it way before I get through 5 or so weapons, here is the sub, maybe also the wait times may need editing so that I don't die from hitting nothing , I'd appreciate any help. THANKS!

sub scan_armor
  set #lpc 1000
  gosub show_men
  finditem * C_ , #charid
  for #findindex 1 #findcnt
  {
    gosub scan_dura #findid
    if #result = #true && !dura_max <> N/A
    {
      event property #findid
      set %temp_sid #property
      str pos %temp_sid $
      set %del #strres - 1
      if %del > 22
        set %del 22
      str left %temp_sid %del
      set %prop #strres
      set %slash /
      menu list add durabox %prop , #spc , !dura_cur , %slash , !dura_max
      if !dura_cur <= %dura_warn
      {
        set %problem %problem + 1
        event macro 3 0 %prop , #spc , !dura_cur , #spc , Durability , #spc , left! , #spc , Please , #spc , Stop , #spc , Script , #spc , And , #spc , Fix , #spc , It!!!
        menu delete durawarn
        menu Font Size 8
        menu Font Style b
        menu Font Color Red
        menu Text durawarn 15 10 ( %problem warnings ) %prop is below dura threshold
        if %remove_armor_on_warn = #true
        {
          wait 10
          exevent drag #findid #findstack
          wait 10
          exevent dropc #backpackid
          wait 10
        }
      }
    }
  }
  set #lpc 20
  set %problem 0
return

25
RebirthUO / Re: Halloween 2015 (Offical Teaser)
« on: October 30, 2015, 01:59:04 PM »
If I had more spare time I really would play your server, it really seems like you guys put in a ton of effort so I hope your player base is grateful!

26
Script Debug / Re: Issue with a sub of mine
« on: October 28, 2015, 08:22:32 AM »
sadly I don't think that is the problem either, it uses the dungeon portal and then just sits still, the tile it should be going to is not through a dungeon entrance as he's already in there, it just stops dead

27
Script Debug / Re: Issue with a sub of mine
« on: October 08, 2015, 01:13:21 AM »
okay, rail 2 gets me out of the dungeon before recalling to the bank, rail 1 takes me into the dungeon before killing

28
Script Debug / Re: Issue with a sub of mine
« on: October 07, 2015, 09:20:14 AM »
Ghosts fix does not work for me

29
Script Debug / Re: Character Movement
« on: October 07, 2015, 09:18:23 AM »
EN thanks for your reply, that would be something better for me to implement into my scripts, do you have any examples of this that I can see so I can try to learn how to use them into my own scripts please?

30
Stealth Client / Re: Cannot play without Stealth after running it
« on: October 05, 2015, 09:55:13 AM »
normally it won't let you make the new .cfg unless you run it as administrator, hope that helps

Pages: 1 [2] 3 4 ... 10