Demoniac
09-11-2012, 00:48
Well, I wonder if anyone can help me modify this script so instead of trade "medicine pouch."
deposit in deport inside backpacks.
Save and selling is more profitable than exchanging the npc.
if someone can help me.
This is the script.
#How many potions to bring
fastExiva _pots = 20
#ItemID of the potion to bring
fastExiva _potid = 0A 01
#Price of potion
fastExiva _potprice = 45
#Empty potion ID
fastExiva _emptypotid = 1D 01
#Leave when capacity less than
fastExiva _leavecap = 40
#Leave when potions less than
fastExiva _leavepots = 5
#
#Should the bot exchange Medicine Pouches when restocking?
fastExiva _exchangemedicine = true
#
#What to deposit from Belongings of a Deceased
#
#EDIT REAL LIST NEAR END OF SCRIPT
#
#KEEPS:
# - Bat Wing (always keeps because looted from bats in cave.
# - Honeycomb
# - Spider Fangs
# - Bunch of Troll Hair
# - Gold Coins
# - Chicken Feather
# - Turtle Shell
# - Garlic Necklace
# - Spider Silk
# - White Pearl
# - Piggy Bank
# - Book of Prayers
# - Iron Ore
# - Flask of Warrior's Sweat
# - Plague Bell
# - Plague Mask
# - Boots of Haste
# - Slug Drug
#
# DROPS:
# - Egg
# - Broken Piggy Bank
# - Dirty Cape
# - Worn Leather Boots
#
#EDIT REAL LIST NEAR END OF SCRIPT
#
#
setMeleeKill feverish citizen
setMeleeKill slug
setMeleeKill bat
setMeleeKill ghoul
setMeleeKill swamp troll
setMeleeKill rotworm
setMeleeKill skeleton
#Gold
setLoot D7 0B
#Medicine Pouch
setLoot E5 30
#Feverish Citizen Cloths
setLoot 07 31
setLoot 08 31
setLoot 09 31
setLoot 0A 31
setLoot 0B 31
setLoot 0C 31
#Plague Bell
setLoot F3 31
#Plague Mask
setLoot F2 31
#Swamp Grass
setLoot D6 25
#Bat Wing
setLoot 06 17
setFollow
setFriendly
SetMaxAttackTimeMs 360000
move 32934,32234,8
move 32959,32231,8
move 32952,32203,8
move 32934,32216,8
IfTrue ($mycap$#number<#$numericalexp:{$_leavecap$}*100$) Goto $nlineoflabel:restock$
IfTrue ($countitems:{$_potid$}$#number<#$_leavepots$) Goto $nlineoflabel:restock$
move 32938,32216,7
move 32941,32216,6
move 32941,32218,5
move 32940,32216,6
move 32940,32214,7
move 32935,32216,7
move 32935,32217,8
IfTrue ($mycap$#number<#$numericalexp:{$_leavecap$}*100$) Goto $nlineoflabel:restock$
IfTrue ($countitems:{$_potid$}$#number<#$_leavepots$) Goto $nlineoflabel:restock$
move 32938,32180,8
move 32941,32176,8
move 32940,32176,9
move 32940,32177,8
IfTrue ($mycap$#number<#$numericalexp:{$_leavecap$}*100$) Goto $nlineoflabel:restock$
IfTrue ($countitems:{$_potid$}$#number<#$_leavepots$) Goto $nlineoflabel:restock$
move 32948,32171,8
move 32948,32170,9
move 32948,32171,8
IfTrue ($mycap$#number<#$numericalexp:{$_leavecap$}*100$) Goto $nlineoflabel:restock$
IfTrue ($countitems:{$_potid$}$#number<#$_leavepots$) Goto $nlineoflabel:restock$
move 32952,32177,8
move 32952,32176,9
move 32952,32177,8
IfTrue ($mycap$#number<#$numericalexp:{$_leavecap$}*100$) Goto $nlineoflabel:restock$
IfTrue ($countitems:{$_potid$}$#number<#$_leavepots$) Goto $nlineoflabel:restock$
move 32949,32178,8
move 32948,32178,9
move 32944,32201,9
move 32948,32187,9
move 32948,32178,9
move 32948,32179,8
move 32948,32175,8
move 32942,32178,8
IfTrue ($mycap$#number<#$numericalexp:{$_leavecap$}*100$) Goto $nlineoflabel:restock$
IfTrue ($countitems:{$_potid$}$#number<#$_leavepots$) Goto $nlineoflabel:restock$
move 32934,32174,8
move 32926,32175,9
move 32917,32155,10
move 32928,32145,10
move 32912,32145,10
move 32917,32157,10
move 32917,32159,9
move 32917,32187,9
move 32914,32191,8
IfTrue ($mycap$#number<#$numericalexp:{$_leavecap$}*100$) Goto $nlineoflabel:restock$
IfTrue ($countitems:{$_potid$}$#number<#$_leavepots$) Goto $nlineoflabel:restock$
move 32911,32225,8
move 32902,32224,8
move 32908,32238,8
move 32912,32243,8
IfTrue ($mycap$#number<#$numericalexp:{$_leavecap$}*100$) Goto $nlineoflabel:restock$
IfTrue ($countitems:{$_potid$}$#number<#$_leavepots$) Goto $nlineoflabel:restock$
gotoScriptLine 0
:restock
move 32938,32226,8
move 32937,32225,9
move 32918,32258,9
move 32915,32259,8
move 32912,32260,7
move 32914,32233,7
move 32916,32229,6
move 32912,32204,6
move 32913,32198,7
setAny
move 32936,32160,7
move 32936,32158,6
move 32936,32097,6
setChaoticMovesOFF
move 33019,32053,6
sayMessage hi
waitX 1
sayInTrade deposit all
sayInTrade yes
IfTrue ($countitems:{$_potid$}$#number>=#$_pots$) Goto $nlineoflabel:nowithdraw$
waitX 1
sayInTrade withdraw $numericalexp:{$numericalexp:{$numericalexp:{$_pot s$}-{$countitems:{$_potid$}$}$}*{$_potprice$}$}-{$numericalexp:{$countitems:{$_emptypotid$}$}*5$}$
sayInTrade yes
:nowithdraw
setChaoticMovesON
move 33020,32058,6
move 33020,32060,7
move 33018,32057,7
resetLoot
#
# DON'T EDIT !!! REGULAR LOOT !!!
#
#Feverish Citizen Cloths
setLoot 07 31
setLoot 08 31
setLoot 09 31
setLoot 0A 31
setLoot 0B 31
setLoot 0C 31
#Plague Bell
setLoot F3 31
#Plague Mask
setLoot F2 31
#Swamp Grass
setLoot D6 25
IfTrue ($_exchangemedicine$#string=#true) Goto $nlineoflabel:nodepositpouches$
#Medicine Pouch
setLoot E5 30
:nodepositpouches
putLootOnDepot
#Medicine Pouch
setLoot D6 25
#Gold
setLoot D7 0B
move 33019,32059,7
move 33020,32058,6
IfTrue ($countitems:{$_potid$}$#number>=#$_pots$) Goto $nlineoflabel:nopots$
setChaoticMovesOFF
move 32971,32085,6
sayMessage hi
sayInTrade trade
waitX 1
fastExiva sell:$_emptypotid$:$countitems:{$_emptypotid$}$
waitX 1
fastExiva buy:$_potid$:$numericalexp:{$_pots$}-{$countitems:{$_potid$}$}$
setChaoticMovesON
:nopots
move 32936,32097,6
IfTrue ($countitems:E5 30$#number=#0) Goto $nlineoflabel:noexchange$
IfTrue ($_exchangemedicine$#string<>#true) Goto $nlineoflabel:noexchange$
move 32862,32125,6
move 32862,32127,7
move 32882,32118,7
setChaoticMovesOFF
move 32883,32114,6
fastExiva > A2 $hex-idofname:Ottokar$ 01 00 00 00
waitX 1
sayMessage hi
waitX 1
:exchange
sayInTrade medicine
waitX 1
sayInTrade yes
waitX 1
IfTrue ($countitems:E5 30$#number>#0) Goto $nlineoflabel:exchange$
:openbags
fastExiva > 82 FF FF 00 00 00 7D 30 00 00
waitX 1
IfTrue ($countitems:7D 30$#number>#0) Goto $nlineoflabel:openbags$
fastExiva > BE
move 32882,32116,6
setChaoticMovesOFF
move 32882,32118,7
move 32862,32125,7
move 32862,32125,6
move 32910,32076,6
move 32916,32077,7
resetLoot
#
# KEEP LIST!
#
#Bat Wing
setLoot 06 17
#Honeycomb
setLoot 0E 17
#Spider Fangs
setLoot 5F 1F
#Bunch of Troll Hair
setLoot D9 25
#Gold Coins
setLoot D7 0B
#Chicken Feather
setLoot 02 17
#Turtle Shell
setLoot 0B 17
#Garlic Necklace
setLoot 0B 0C
#Spider Silk
setLoot F7 16
#White Pearl
setLoot D2 0B
#Piggy Bank
setLoot B3 0B
#Book of Prayers
setLoot AE 25
#Iron Ore
setLoot F8 16
#Flask of Warrior's Sweat
setLoot FD 16
#Plague Bell
setLoot F3 31
#Plague Mask
setLoot F2 31
#Boots of Haste
setLoot 07 0C
#Slug Drug
#set Loot ?? ??
putLootOnDepot
resetLoot
#
# DROP LIST!
#
#Egg
setLoot 16 0E
#Broken Piggy Bank
setLoot B4 0B
#Dirty Cape
setLoot 32 0C
#Worn Leather Boots
setLoot 33 0C
dropLootOnGround $myx$,$myy$,$myz$
resetLoot
move 32934,32075,7
move 32935,32074,6
:noexchange
move 32936,32158,6
move 32936,32160,7
setFollow
#Gold
setLoot D7 0B
#Medicine Pouch
setLoot D6 25
#Feverish Citizen Cloths
setLoot 07 31
setLoot 08 31
setLoot 09 31
setLoot 0A 31
setLoot 0B 31
setLoot 0C 31
#Plague Bell
setLoot F3 31
#Plague Mask
setLoot F2 31
#Swamp Grass
setLoot E5 30
#Bat Wing
setLoot 06 17
move 32912,32198,7
move 32912,32204,6
move 32916,32229,6
move 32912,32233,7
move 32914,32262,7
move 32916,32260,8
move 32917,32257,9
move 32938,32227,9
move 32938,32226,8
gotoScriptLine 0
setMeleeKill snake
deposit in deport inside backpacks.
Save and selling is more profitable than exchanging the npc.
if someone can help me.
This is the script.
#How many potions to bring
fastExiva _pots = 20
#ItemID of the potion to bring
fastExiva _potid = 0A 01
#Price of potion
fastExiva _potprice = 45
#Empty potion ID
fastExiva _emptypotid = 1D 01
#Leave when capacity less than
fastExiva _leavecap = 40
#Leave when potions less than
fastExiva _leavepots = 5
#
#Should the bot exchange Medicine Pouches when restocking?
fastExiva _exchangemedicine = true
#
#What to deposit from Belongings of a Deceased
#
#EDIT REAL LIST NEAR END OF SCRIPT
#
#KEEPS:
# - Bat Wing (always keeps because looted from bats in cave.
# - Honeycomb
# - Spider Fangs
# - Bunch of Troll Hair
# - Gold Coins
# - Chicken Feather
# - Turtle Shell
# - Garlic Necklace
# - Spider Silk
# - White Pearl
# - Piggy Bank
# - Book of Prayers
# - Iron Ore
# - Flask of Warrior's Sweat
# - Plague Bell
# - Plague Mask
# - Boots of Haste
# - Slug Drug
#
# DROPS:
# - Egg
# - Broken Piggy Bank
# - Dirty Cape
# - Worn Leather Boots
#
#EDIT REAL LIST NEAR END OF SCRIPT
#
#
setMeleeKill feverish citizen
setMeleeKill slug
setMeleeKill bat
setMeleeKill ghoul
setMeleeKill swamp troll
setMeleeKill rotworm
setMeleeKill skeleton
#Gold
setLoot D7 0B
#Medicine Pouch
setLoot E5 30
#Feverish Citizen Cloths
setLoot 07 31
setLoot 08 31
setLoot 09 31
setLoot 0A 31
setLoot 0B 31
setLoot 0C 31
#Plague Bell
setLoot F3 31
#Plague Mask
setLoot F2 31
#Swamp Grass
setLoot D6 25
#Bat Wing
setLoot 06 17
setFollow
setFriendly
SetMaxAttackTimeMs 360000
move 32934,32234,8
move 32959,32231,8
move 32952,32203,8
move 32934,32216,8
IfTrue ($mycap$#number<#$numericalexp:{$_leavecap$}*100$) Goto $nlineoflabel:restock$
IfTrue ($countitems:{$_potid$}$#number<#$_leavepots$) Goto $nlineoflabel:restock$
move 32938,32216,7
move 32941,32216,6
move 32941,32218,5
move 32940,32216,6
move 32940,32214,7
move 32935,32216,7
move 32935,32217,8
IfTrue ($mycap$#number<#$numericalexp:{$_leavecap$}*100$) Goto $nlineoflabel:restock$
IfTrue ($countitems:{$_potid$}$#number<#$_leavepots$) Goto $nlineoflabel:restock$
move 32938,32180,8
move 32941,32176,8
move 32940,32176,9
move 32940,32177,8
IfTrue ($mycap$#number<#$numericalexp:{$_leavecap$}*100$) Goto $nlineoflabel:restock$
IfTrue ($countitems:{$_potid$}$#number<#$_leavepots$) Goto $nlineoflabel:restock$
move 32948,32171,8
move 32948,32170,9
move 32948,32171,8
IfTrue ($mycap$#number<#$numericalexp:{$_leavecap$}*100$) Goto $nlineoflabel:restock$
IfTrue ($countitems:{$_potid$}$#number<#$_leavepots$) Goto $nlineoflabel:restock$
move 32952,32177,8
move 32952,32176,9
move 32952,32177,8
IfTrue ($mycap$#number<#$numericalexp:{$_leavecap$}*100$) Goto $nlineoflabel:restock$
IfTrue ($countitems:{$_potid$}$#number<#$_leavepots$) Goto $nlineoflabel:restock$
move 32949,32178,8
move 32948,32178,9
move 32944,32201,9
move 32948,32187,9
move 32948,32178,9
move 32948,32179,8
move 32948,32175,8
move 32942,32178,8
IfTrue ($mycap$#number<#$numericalexp:{$_leavecap$}*100$) Goto $nlineoflabel:restock$
IfTrue ($countitems:{$_potid$}$#number<#$_leavepots$) Goto $nlineoflabel:restock$
move 32934,32174,8
move 32926,32175,9
move 32917,32155,10
move 32928,32145,10
move 32912,32145,10
move 32917,32157,10
move 32917,32159,9
move 32917,32187,9
move 32914,32191,8
IfTrue ($mycap$#number<#$numericalexp:{$_leavecap$}*100$) Goto $nlineoflabel:restock$
IfTrue ($countitems:{$_potid$}$#number<#$_leavepots$) Goto $nlineoflabel:restock$
move 32911,32225,8
move 32902,32224,8
move 32908,32238,8
move 32912,32243,8
IfTrue ($mycap$#number<#$numericalexp:{$_leavecap$}*100$) Goto $nlineoflabel:restock$
IfTrue ($countitems:{$_potid$}$#number<#$_leavepots$) Goto $nlineoflabel:restock$
gotoScriptLine 0
:restock
move 32938,32226,8
move 32937,32225,9
move 32918,32258,9
move 32915,32259,8
move 32912,32260,7
move 32914,32233,7
move 32916,32229,6
move 32912,32204,6
move 32913,32198,7
setAny
move 32936,32160,7
move 32936,32158,6
move 32936,32097,6
setChaoticMovesOFF
move 33019,32053,6
sayMessage hi
waitX 1
sayInTrade deposit all
sayInTrade yes
IfTrue ($countitems:{$_potid$}$#number>=#$_pots$) Goto $nlineoflabel:nowithdraw$
waitX 1
sayInTrade withdraw $numericalexp:{$numericalexp:{$numericalexp:{$_pot s$}-{$countitems:{$_potid$}$}$}*{$_potprice$}$}-{$numericalexp:{$countitems:{$_emptypotid$}$}*5$}$
sayInTrade yes
:nowithdraw
setChaoticMovesON
move 33020,32058,6
move 33020,32060,7
move 33018,32057,7
resetLoot
#
# DON'T EDIT !!! REGULAR LOOT !!!
#
#Feverish Citizen Cloths
setLoot 07 31
setLoot 08 31
setLoot 09 31
setLoot 0A 31
setLoot 0B 31
setLoot 0C 31
#Plague Bell
setLoot F3 31
#Plague Mask
setLoot F2 31
#Swamp Grass
setLoot D6 25
IfTrue ($_exchangemedicine$#string=#true) Goto $nlineoflabel:nodepositpouches$
#Medicine Pouch
setLoot E5 30
:nodepositpouches
putLootOnDepot
#Medicine Pouch
setLoot D6 25
#Gold
setLoot D7 0B
move 33019,32059,7
move 33020,32058,6
IfTrue ($countitems:{$_potid$}$#number>=#$_pots$) Goto $nlineoflabel:nopots$
setChaoticMovesOFF
move 32971,32085,6
sayMessage hi
sayInTrade trade
waitX 1
fastExiva sell:$_emptypotid$:$countitems:{$_emptypotid$}$
waitX 1
fastExiva buy:$_potid$:$numericalexp:{$_pots$}-{$countitems:{$_potid$}$}$
setChaoticMovesON
:nopots
move 32936,32097,6
IfTrue ($countitems:E5 30$#number=#0) Goto $nlineoflabel:noexchange$
IfTrue ($_exchangemedicine$#string<>#true) Goto $nlineoflabel:noexchange$
move 32862,32125,6
move 32862,32127,7
move 32882,32118,7
setChaoticMovesOFF
move 32883,32114,6
fastExiva > A2 $hex-idofname:Ottokar$ 01 00 00 00
waitX 1
sayMessage hi
waitX 1
:exchange
sayInTrade medicine
waitX 1
sayInTrade yes
waitX 1
IfTrue ($countitems:E5 30$#number>#0) Goto $nlineoflabel:exchange$
:openbags
fastExiva > 82 FF FF 00 00 00 7D 30 00 00
waitX 1
IfTrue ($countitems:7D 30$#number>#0) Goto $nlineoflabel:openbags$
fastExiva > BE
move 32882,32116,6
setChaoticMovesOFF
move 32882,32118,7
move 32862,32125,7
move 32862,32125,6
move 32910,32076,6
move 32916,32077,7
resetLoot
#
# KEEP LIST!
#
#Bat Wing
setLoot 06 17
#Honeycomb
setLoot 0E 17
#Spider Fangs
setLoot 5F 1F
#Bunch of Troll Hair
setLoot D9 25
#Gold Coins
setLoot D7 0B
#Chicken Feather
setLoot 02 17
#Turtle Shell
setLoot 0B 17
#Garlic Necklace
setLoot 0B 0C
#Spider Silk
setLoot F7 16
#White Pearl
setLoot D2 0B
#Piggy Bank
setLoot B3 0B
#Book of Prayers
setLoot AE 25
#Iron Ore
setLoot F8 16
#Flask of Warrior's Sweat
setLoot FD 16
#Plague Bell
setLoot F3 31
#Plague Mask
setLoot F2 31
#Boots of Haste
setLoot 07 0C
#Slug Drug
#set Loot ?? ??
putLootOnDepot
resetLoot
#
# DROP LIST!
#
#Egg
setLoot 16 0E
#Broken Piggy Bank
setLoot B4 0B
#Dirty Cape
setLoot 32 0C
#Worn Leather Boots
setLoot 33 0C
dropLootOnGround $myx$,$myy$,$myz$
resetLoot
move 32934,32075,7
move 32935,32074,6
:noexchange
move 32936,32158,6
move 32936,32160,7
setFollow
#Gold
setLoot D7 0B
#Medicine Pouch
setLoot D6 25
#Feverish Citizen Cloths
setLoot 07 31
setLoot 08 31
setLoot 09 31
setLoot 0A 31
setLoot 0B 31
setLoot 0C 31
#Plague Bell
setLoot F3 31
#Plague Mask
setLoot F2 31
#Swamp Grass
setLoot E5 30
#Bat Wing
setLoot 06 17
move 32912,32198,7
move 32912,32204,6
move 32916,32229,6
move 32912,32233,7
move 32914,32262,7
move 32916,32260,8
move 32917,32257,9
move 32938,32227,9
move 32938,32226,8
gotoScriptLine 0
setMeleeKill snake