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
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