Thread: A little help..

Results 1 to 3 of 3
  1. #1 A little help.. 
    dagg
    Guest
    Ok so, I'm trying to make it so when you click a certain gate, you get put back out if your slayer is over 2. how would i make this work?
    case 788: // heavens gate in
    if (playerlevel[18] == 1);
    teleportToX = 2058;
    teleportToY = 3146;
    heightLevel = 0;
    updateRequired = true;
    appearanceUpdateRequired = true;
    sendMessage("You may pass.");
    else if (playerlevel[18] >= 2);
    teleportToX = 2414;
    teleportToY = 5115;
    heightLevel = 0;
    updateRequired = true;
    appearanceUpdateRequired = true;
    sendMessage("Your heart is inpure, forever rot in hell!");
    break;
    Its probably some small problem that I'm to much of a retard to figure out.. It errors in the compiler when i try and finish. Anyone know the problem??
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Sep 2008
    Posts
    2,219
    Thanks given
    148
    Thanks received
    204
    Rep Power
    1570
    Code:
    case 788://Heavens gate in
    	if (playerLevel[18] > 1) {
    		teleportToX = absX - 2;
    		teleportToY = absY - 2;
    		sendMessage("Your heart is inpure, forever rot in hell!");
    	} else {
    		teleportToX = 2058;
    		teleportToY = 3146;
    		sendMessage("You may pass.");
    	}
    	updateRequired = true;
    	appearanceUpdateRequired = true;
    	break;



    Reply With Quote  
     

  3. #3  
    dagg
    Guest
    Thank (: repped
    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

Tags for this Thread

View Tag Cloud

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