• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Strawberry EXP

tobias89

Pikaz Liek Pikaz
Joined
Apr 24, 2010
Messages
110
Reaction score
0
Everytime i eat a Strawberry i want it to give me 100 exp. How can i do that? =)

Thank you,
a Newbie!
 
Go to data/actions/scripts/other/food.lua
and under

Code:
	if((getPlayerFood(cid) + food[1]) >= 400) then
		doPlayerSendCancel(cid, "You are full.")
		return true
	end
add this
Code:
	if item.itemid == 2680 then
	doPlayerFeed(cid, food[1] * 4)
	doCreatureSay(cid, food[2], TALKTYPE_ORANGE_1)
	doRemoveItem(item.uid, 1)
	doPlayerAddExperience(cid,100)
	return true
	end
 
Go to data/actions/scripts/other/food.lua
and under

Code:
	if((getPlayerFood(cid) + food[1]) >= 400) then
		doPlayerSendCancel(cid, "You are full.")
		return true
	end
add this
Code:
	if item.itemid == 2680 then
	doPlayerFeed(cid, food[1] * 4)
	doCreatureSay(cid, food[2], TALKTYPE_ORANGE_1)
	doRemoveItem(item.uid, 1)
	doPlayerAddExperience(cid,100)
	return true
	end



All right, it works!!

But is it possible to take away the eating lim for the strawberrys!

and maybe add a text saying "100 EXP GRANTED!"
 
Code:
if item.itemid == 2680 then
	doCreatureSay(cid,"100 EXP GRANTED!", TALKTYPE_ORANGE_1)
	doRemoveItem(item.uid, 1)
	doPlayerAddExperience(cid,100)
	return true
	end
 
Let's say I wanted to change 100 bluebarries for 30 strawberries. or an item like x-mas token. how could that be done ?
 

Similar threads

Back
Top