PDA

View Full Version : How do you make items do trigger something like -teleport- or -additem- (e.g caskets)



Danish
June 27th, 2010, 18:29
I was wondering how to make an item trigger an action like adding an item.

So far i got :

if(UsedItemID == 6853){
deleteItem(6853, 1);
addItem(7478, 1);
addItem(7478, 1);
addItem(7478, 1);
addItem(7478, 1);
addItem(7478, 1);
addItem(7478, 1);
addItem(7478, 1);
addItem(7478, 1);
addItem(7478, 1);
addItem(7478, 1);
}
But when i use the item it doesn't give those items....
It does nothing

zygis227
June 27th, 2010, 19:05
well its not realy hard you can scrool the client.jar of a newer source like evoliutionx or something you will find the code

Canownueasy`
June 27th, 2010, 19:08
Show your item click method.

zygis227
June 27th, 2010, 19:22
if(((itemUsed == 1234)
addItem(1234, 1);
addItem(1234, 1);

works for me i addet it near the restore piotions ir client.jar

idk if it work for you if you use a dif source but you could try