PDA

View Full Version : 562 rs2hd adding new food



scootersam
July 19th, 2010, 14:05
well i havnt seen a tut for this and i know its easy but its good for the people new to coding so here,

ok for the food,
goto data scripts and open food.py

scroll down you will see some coding that looks like this:

# manta ray:
def item_select_391(player, slot):
eat(player, 391, slot, 22)


ok for me ima add tuna potato
ok so get your id mine is 7060

this is what mine looks like when it is done

# tuna potato:
def item_select_7060(player, slot):
eat(player, 7060, slot, 30)

ok 3 things you need to do do it
1).change the name to your food name
2).you see 7060 thats the food id change that to yours
3). you see slot, 30 well 30 is the hp that it heals

i hope this helped thanks for reading

mxny
April 15th, 2011, 15:18
Thanks but remember to add to itemdefinitions.xml in data but nvm your banned:S

Lukedawesome
April 15th, 2011, 21:50
Thanks but remember to add to itemdefinitions.xml in data but nvm your banned:S

July 19th, 2010....

David
April 15th, 2011, 22:25
Thanks but remember to add to itemdefinitions.xml in data but nvm your banned:S

And he's also the one who's in your signature.