Thread: Dementhium Clue Scrolls

Results 1 to 2 of 2
  1. #1 Dementhium Clue Scrolls 
    Registered Member
    Join Date
    Nov 2011
    Posts
    228
    Thanks given
    5
    Thanks received
    7
    Rep Power
    19
    does anyone have any idea why this doesnt work?

    i know it can be done better but im just trying to get it to work for now

    Code:
    package org.dementhium.content.activity.impl;
    
    import org.dementhium.model.Item;
    import org.dementhium.model.Location;
    import org.dementhium.model.player.Player;
    import org.dementhium.util.Area;
    
    /**
     *
     * @author Gomballz
     */
    public class ClueScrolls {
    	
    	public static final Area[] Easy_Clue_1 = { 
    		Area.rectangle(Location.locate(1887, 3162, 0), Location.locate(1885, 3160, 0)), 
    };
    	
    	public boolean itemActionEasyClue1(Player player, Item item, int actionId, String action, Object... params) {
    		for (int i = 0; i < Easy_Clue_1.length;) {
    		if (item.getId() == 952) {
    			player.animate(830);
    				if (item.getId() == 13159 && Easy_Clue_1[i].isInArea(player.getLocation())) {
    					player.getInventory().addItem(13158, 1);
    					player.getInventory().deleteItem(13159, 1);
    					player.sendMessage("You Dig up a treasure chest!");
    					return true;
    				} else {
    					player.sendMessage("You find nothing.");
    					return true;
    				}
    			}
    		}
    		return false;
    	}
    }
    also i know item ids are wrong but just made it to test
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Nov 2011
    Posts
    228
    Thanks given
    5
    Thanks received
    7
    Rep Power
    19
    bump
    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

Similar Threads

  1. [PI] Clue Scrolls
    By NICKname in forum Snippets
    Replies: 35
    Last Post: 01-10-2012, 08:49 AM
  2. clue scrolls...
    By Balla in forum Help
    Replies: 3
    Last Post: 11-28-2009, 07:30 PM
  3. My clue scrolls
    By SourDeeez in forum Show-off
    Replies: 30
    Last Post: 02-12-2009, 06:44 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •