Different Items
Okay...I'm making a quest in The Arena (I have custom mobs there) in which you have to rescue King Zaixelek. You have to get 4 bits of armour from "God_of_War", who drops about 1 or 2 different pieces of loot per kill. When you give him the 4 bits of armour, he will give you a new item and make you level 65. So far I have this:
Code:
/* Zone:arena ID:178204 -- King_Zaixelek */ 1001,1002,1003,1004,1005,1006,1007,1008,1009,1010, 1011,1012. So for $item0 I want you to be able to hand in item's 1001-1012, and the same for slot 2, 3 and 4. How would I do this, please...? |
Heres a fixed up version, you might have to wait for CVS to be updated to get it to work tho..
Code:
|
Well JAW beat me to part of it :)
Havn't tried this, but this is the idea. Change if ($itemcount(1001) == 1 && $itemcount(1002) == 1 && $itemcount(1003) == 1 && $itemcount(1004) == 1) to if ((itemcount(1001) == 1 || itemcount(1002) == 1 || itemcount(1003) == 1 || itemcount(1004) == 1 || itemcount(1005) == 1 || itemcount(1006) == 1 || itemcount(1007) == 1 || itemcount(1008) == 1 || itemcount(1009) == 1 || itemcount(1010) == 1 || itemcount(1011) == 1 || itemcount(1012) == 1) && $itemcount(1002) == 1 && $itemcount(1003) == 1 && $itemcount(1004) == 1) Kinda long, and that may be a problem... give it a try You could also split it up and make up to 12 seperate quests with the same result... |
LOL lurker, sorry didn't read whole post. This might work too
Code:
EVENT_ITEM { |
Thanks!
Okay now I have this (Have changed it a bit) : Code:
EVENT_SAY { "C:\EQEmu\quests\arena\178204.qst" Yet when I am in the game, Hailing him has no effect, killing him has no effect, spawning him has no effect, giving him the items has no effect...any ideas? |
break up the EVENT_SAY { }
Make one for each if statment, that is what seems to happen if any EVENT_ section is too big :/ Should be fixed in 4.4 I believe. |
Yeah looks like it's fixed on CVS now, but I can't get the latest CVS to compile to test it. :/
|
Okay...now I have this:
Code:
EVENT_SAY { C:\EQEmu\quests\arena with the file name 178204.qst (Both there are correct for location / spawnID thing) No response! Is it something to do with the database...do I need to download something and source it in? Do I need to put anything in the quests folder...? Thankie again, Monny. |
You have commas in your dialogue, if you aren't using the latest CVS then it will NOT work.
|
Okay, removed all commas and it works now! (Yey - thanks all!). But...
The item turn in is a little iffy. When you go to Kinggy and Hail him, and give him the 4 bits of armour you get the reward (Item 1016). But you also get the reward if you hand him 3, 2 or even 1 bit(s) of armour. I'm not sure why. It may be because I have all the armour on me, because of this bit here: Code:
if ((itemcount(1001) == 1 || itemcount(1002) == 1 || itemcount(1003) == 1 || itemcount(1004) == 1 || itemcount(1005) == 1 || itemcount(1006) == 1 || itemcount(1007) == 1 || itemcount(1008) == 1 || itemcount(1009) == 1 || itemcount(1010) == 1 || itemcount(1011) == 1 || itemcount(1012) == 1) && $itemcount(1002) == 1 && $itemcount(1003) == 1 && $itemcount(1004) == 1) Handing in item 1014 in slot 1, 1012 in slot 2, 1010 in slot 3 and 1009 in slot 4 works. Handing in item 1001 in slot 1, 1002 in slot 2, 1005 in slot 3 and 1010 in slot 4 works. But... Handing in item 1014 in slot 1 does NOT work. Thank you (yet again :P ), |
noticed 1 bug, the items in the inner () with || should not also be outside that section 1002 1003 1004 are listed twice.
Code:
if ((itemcount(1001) == 1 || itemcount(1002) == 1 || itemcount(1003) == 1 || itemcount(1004) == 1 || itemcount(1005) == 1 || itemcount(1006) == 1 || itemcount(1007) == 1 || itemcount(1008) == 1 || itemcount(1009) == 1 || itemcount(1010) == 1 || itemcount(1011) == 1 || itemcount(1012) == 1) && $itemcount(1013) == 1 && $itemcount(1014) == 1 && $itemcount(1015) == 1) The length could be throwing it off, try testing with just 2 items in the || section Code:
if ((itemcount(1001) == 1 || itemcount(1002) == 1) && $itemcount(1013) == 1 && $itemcount(1014) == 1 && $itemcount(1015) == 1) or 1002, 1013, 1014, 1015 work in any order But nothing else should |
If commas don't work for your server, most likely neither will $itemcount - so if possible, try to get the latest CVS...commas work and you can use $itemcount.
|
Where could I find the latest CVS?
EQEmu @ Sourceforge? Which page please :D |
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/eqemu/
NOTE: This is the source - you'll have to compile yourself. |
How would I go about doing that :D
|
All times are GMT -4. The time now is 12:33 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.