Results 1 to 4 of 4

Thread: Change Spear/Sword and Sword/Spear!

  1. #1
    Premium User iwoq's Avatar
    Join Date
    Mar 2012
    Location
    Derby
    Posts
    154
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    14 Post(s)
    Reputation
    11
    Rep Power
    5

    Change Spear/Sword and Sword/Spear!

    Change Spear/Sword and Sword/Spear!

    I delete whole post, because Raph_ give a good action. So thanks so much. Good action is under my post!
    Last edited by iwoq; 04-18-2013 at 08:51 PM.

  2. #2
    iBot User Raph_'s Avatar
    Join Date
    Feb 2013
    Posts
    391
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    59
    Rep Power
    4
    Well, i made one action for you that will do everything and you can just change values:
    Code:
    --[[ INIT START ]]--
    	local ITEM = {WEAPON = "serpent sword", AMMO = "spear"}
    	local COUNT = {EQUIP = 4, UNEQUIP = 1}
    --[[ INIT END ]]--
    
    if weaponamount <= COUNT.UNEQUIP and weapon == itemid(ITEM.AMMO) or weapon == 0 then
    	if itemcount(ITEM.AMMO) > 0 then
    		moveitems(ITEM.AMMO, "all", "weapon", 100)
    		wait(200, 400)
    	else
    		moveitems(ITEM.WEAPON, "all", "weapon", 1)
    		wait(500, 900)
    	end
    elseif itemcount(ITEM.AMMO) > COUNT.EQUIP and weapon == itemid(ITEM.WEAPON) then
    	moveitems(ITEM.AMMO, "all", "weapon", 100)
    	wait(500, 900)
    end
    If it don't works, just tell here.

  3. #3
    Premium User iwoq's Avatar
    Join Date
    Mar 2012
    Location
    Derby
    Posts
    154
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    14 Post(s)
    Reputation
    11
    Rep Power
    5
    its work great! thanks so much!

  4. #4
    Moderator Furieri's Avatar
    Join Date
    Jun 2012
    Location
    Vitoria - ES / Brasil
    Posts
    792
    Mentioned
    62 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    199 Post(s)
    Reputation
    158
    Rep Power
    7
    awesome REP+

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •