Quote:
Originally Posted by Numtin
EVENT_SAY {
if ($1- =~ "Hail") { say("Hail $name . I am skilled in the arts of smithing. I would be more than willing to make you some [armor] if you wish.") }
if ($1- =~ "armor") { say("I can craft a nice [helm] [vambraces] [greaves] [breastplate] [boots] [gauntlets] or [bracer].") }
if ($1- =~ "helm") { say("I can make you a fine helm. Bring me a lambent stone and a water flask. Don't forget the Full Plate Helm Mold.") }
if ($1- =~ "vambraces") { say("I can make you a fine set of vambraces. Bring me a lambent stone and a water flask. Don't forget the Full Plate Vambrace Mold.") }
if ($1- =~ "greaves") { say("I can make you a fine set of greaves. Bring me a lambent stone and a water flask. Don't forget the Full Plate Greaves Mold.") }
if ($1- =~ "breastplate") { say("I can make you a fine Breastplate. Bring me a lambent stone and a water flask. Don't forget the Full Breastplate Mold.") }
if ($1- =~ "boots") { say("I can make you a fine pair of boots. Bring me a lambent stone and a water flask. Don't forget the Full Plate Boot Mold.") }
if ($1- =~ "gauntlets") { say("I can make you a fine set of gauntlets. Bring me a lambent stone and a water flask. Don't forget the Full Plate Gauntlet Mold.") }
if ($1- =~ "bracer") { say("I can make you a fine bracer. Bring me a lambent stone and a water flask. Don't forget the Full Plate Bracer Mold.") }
}
EVENT_ITEM {
if ($item1 == "10000" && $item2 == "13006" && $item3 == "22047") { say("Excellent Work. Here is your Helm") summonitem("4153") }
if ($item1 == "10000" && $item2 == "13006" && $item3 == "22051") { say("Excellent Work. Here is your Vambraces") summonitem("4155") }
if ($item1 == "10000" && $item2 == "13006" && $item3 == "22052") { say("Excellent Work. Here is your Greaves") summonitem("4158") }
if ($item1 == "10000" && $item2 == "13006" && $item3 == "22053") { say("Excellent Work. Here is your Breastplate") summonitem("4154") }
if ($item1 == "10000" && $item2 == "13006" && $item3 == "22046") { say("Excellent Work. Here is your Boots") summonitem("4159") }
if ($item1 == "10000" && $item2 == "13006" && $item3 == "22054") { say("Excellent Work. Here is your Gauntlets") summonitem("4157") }
if ($item1 == "10000" && $item2 == "13006" && $item3 == "22045") { say("Excellent Work. Here is your Bracer") summonitem("4156") }
}
|
that should read more like
if ($item0 == "10000" && $item0 == "13006" && $item2== "22047") { say("Excellent Work. Here is your Helm") summonitem("4153") }
Items start at $item0
Lets say we have an npc that turns cloth caps(1001) in to cloth veils (1002)
EVENT_ITEM {
if ($item0 == "1001" ) {
say("Well done here is your veil")
summonitem("1002")
}
if ($item1 == "1001" ) {
say("Well done here is your veil")
summonitem("1002")
}
if ($item2 == "1001" ) {
say("Well done here is your veil")
summonitem("1002")
}
if ($item3 == "1001" ) {
say("Well done here is your veil")
summonitem("1002")
}
if ($item0 != "1001") {
say("Sorry i have no need of this you may have it back.")
summonitem("$item0")
}
if ($item1 != "1001") {
say("Sorry i have no need of this you may have it back.")
summonitem("$item1")
}
if ($item2 != "1001") {
say("Sorry i have no need of this you may have it back.")
summonitem("$item1")
}
if ($item3 != "1001") {
say("Sorry i have no need of this you may have it back.")
summonitem("$item1")
}
}
or using $itemcount()
EVENT_ITEM {
if ($itemcount("1001")){
say("Well done!")
summonitem("1002")
break()
}
if ($item0){
summonitem("$item0")
summonitem("$item1")
summonitem("$item2")
summonitem("$item3")
say("Say sorry I do not need those.")
}
}