Thread: Trying to add a Crystal Chest (Delta Source)

Results 1 to 5 of 5
  1. #1 Trying to add a Crystal Chest (Delta Source) 
    Always keep 'em guessing.
    Sabbath's Avatar
    Join Date
    Mar 2009
    Posts
    156
    Thanks given
    27
    Thanks received
    4
    Rep Power
    22
    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 :/

    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.");
    }
    Im sure I have everything correct but if you will help me then I will appreciate it alot. Thanks
    Reply With Quote  
     

  2. #2  
    Renown Programmer
    Method's Avatar
    Join Date
    Feb 2009
    Posts
    1,455
    Thanks given
    0
    Thanks received
    843
    Rep Power
    3019
    just from that snippet it looks like you're missing a closing bracket (}) after the last one there.
    :-)
    Reply With Quote  
     

  3. #3  
    Registered Member
    Wiffles's Avatar
    Join Date
    Dec 2007
    Posts
    1,168
    Thanks given
    100
    Thanks received
    198
    Rep Power
    493
    Replace that entire thing with this:

    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.");
    }
    }
    omg hax.
    Reply With Quote  
     

  4. #4  
    Always keep 'em guessing.
    Sabbath's Avatar
    Join Date
    Mar 2009
    Posts
    156
    Thanks given
    27
    Thanks received
    4
    Rep Power
    22
    Thanks guys that worked
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Nov 2008
    Posts
    385
    Thanks given
    8
    Thanks received
    7
    Rep Power
    15
    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.");
    }
    [Only registered and activated users can see links. ] To see my latest project
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •