just from that snippet it looks like you're missing a closing bracket (}) after the last one there.
|
|
Hello, I am trying to add the Crystal Chest to my Delta source but it keeps giving me that 100 errors crap... Please help me with this :/
Im sure I have everything correct but if you will help me then I will appreciate it alot. ThanksCode:if(objectID == 172){ if(playerHasItem(989, 1)){ deleteItem(989, 1); addItem(1631, 1); addItem(Item.randomCrystal(),misc.random(25)); addItem(995, misc.random(100000)); sM("Your Crystal Key breaks inside the chest and you get some items."); }
just from that snippet it looks like you're missing a closing bracket (}) after the last one there.
Replace that entire thing with this:
omg hax.Code:if(objectID == 172){ if(playerHasItem(989, 1)){ deleteItem(989, 1); addItem(1631, 1); addItem(Item.randomCrystal(),misc.random(25)); addItem(995, misc.random(100000)); sM("Your Crystal Key breaks inside the chest and you get some items."); } }
This one is 1 line shorter, and it should work lol.
if(objectID == 172 && playerHasItem(989, 1)){
deleteItem(989, 1);
addItem(1631, 1);
addItem(Item.randomCrystal(),misc.random(25));
addItem(995, misc.random(100000));
sM("Your Crystal Key breaks inside the chest and you get some items.");
}
| « Edgeville Marketplace | Trying to add defence requirement (delta) » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |