Visual Basic Matt
Apprentice
I know this is runescape server development but it's in visual Java# So I thought id post it here. I can't seem to figure out what is wrong with this code here. As you can see its for c wars. I could use some help here. Just please correct the code for me although I have nothing to reward you but a little Thank you.
I will highly appreciate your help. 
Code:
if (objectID == 4406) //Saradomin Exit + if has Zammy flag
if (playerHasItemAmount(4039, 1) == false)
{
teleportToX = 2440; //Teleport to lobby
teleportToY = 3095; //Teleport to lobby
heightLevel = 0; //Teleport to lobby
playerIsSaradomin = false; //Remove player from team
//All this code below to make sure they dont leave with anything they got here.
deleteItem(675, getItemSlot(675), 28);//Rockpick
deleteItem(4051, getItemSlot(4051), 28);//ToolBox
deleteItem(7155, getItemSlot(4155), 28);//Rope
deleteItem(4045, getItemSlot(4042), 28);//Explosive Potion
deleteItem(4043, getItemSlot(4043), 28);//Rock
deleteItem(4042, getItemSlot(4042), 1);//Cape-Hood
deleteItem(4067, getItemSlot(4067), 100);//Tickets
//Until Here.
sendMessage("You left the Saradomin Team.");
}
else
sendMessage("You Cannot Leave with the Zamorak Flag!");
}
if (objectID == 4407) //Zamorak Exit + if has Sara flag
{
if (playerHasItemAmount(4037, 1) == false)
teleportToX = 2440; //Teleport to lobby
teleportToY = 3085; //Teleport to lobby
heightLevel = 0; //Teleport to lobby
playerIsZamorak = false; //Remove player from team
//All this code below to make sure they dont leave with anything they got here.
deleteItem(675, getItemSlot(675), 28);//Rockpick
deleteItem(4051, getItemSlot(4051), 28);//ToolBox
deleteItem(7155, getItemSlot(4155), 28);//Rope
deleteItem(4045, getItemSlot(4042), 28);//Explosive Potion
deleteItem(4043, getItemSlot(4043), 28);//Rock
deleteItem(4042, getItemSlot(4042), 1);//Cape-Hood
deleteItem(4067, getItemSlot(4067), 100);//Tickets
deleteItem(4067, getItemSlot(4067), 100);//Tickets
//Until Here.
sendMessage("You left the Zamorak Team.");
}
else
sendMessage("You Cannot Leave with the Saradomin Flag!");
{











