Thread: Different Items
View Single Post
  #10  
Old 04-02-2003, 04:16 AM
Monrezz's Avatar
Monrezz
Dragon
 
Join Date: Mar 2003
Location: #loc
Posts: 745
Default

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)
I presume "if (itemcount(1001) == 1)" only checks to see if the hailer has the item, not if it has been used in the turn-in? If so, someone who has managed to kill The God of War, and has got pieces of armour off him could just hand in one item and get back the breastplate? (1016). This kinda defies the whole point of handing in 4 pieces of armour hehe...so how would I make it ANY 4 pieces of armour (1001-1012) in ANY slot (1,2,3 or 4) will return 1016. e.g.

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 ),
__________________

kRPG Profile
Reply With Quote