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

Experience Paper!

Zarabustor

Human Being
Joined
Sep 10, 2009
Messages
186
Reaction score
0
Location
Cancun, Mexico
Hello! im looking for a script, when you use the item the experience rate will be x2 example:(normal experience: x10, using the experience paper: x20) for full 1 hour and you can use 2 experience papers each 24 hours. Thanks ILL REP++
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
           if getConfigValue("experienceStages") == "yes" then
                doPlayerSetExperienceRate(cid, getExperienceStage(getPlayerLevel(cid))*2)
           else
                doPlayerSetExperienceRate(cid, getConfigValue("rateExperience")*2)
                doRemoveItem(item.uid)
           end
           return true
end
 
1 more thing please, could you please make that the potion when you use appears a message saying: Now your experience rate is x2 than normal this will end within 60 minutes. Also a command for check the experience time: !exptime When you say the command it will say you how many time you have in the moment to ends the effect, example: Now your experience time is x2 than normal it will last 60 minute depends the time have elapsed.

Please :D I will rep++
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local time = getPlayerStorageValue(cid, 34324) + 3600
	if os.time() >= time then
		if getConfigValue("experienceStages") == "yes" then
			doPlayerSetExperienceRate(cid, getExperienceStage(getPlayerLevel(cid))*2)
		else
			doPlayerSetExperienceRate(cid, getConfigValue("rateExperience")*2)
			doRemoveItem(item.uid)
		end
		setPlayerStorageValue(cid, 34324, os.time())
	end
	return true
end
Code:
function onSay(cid, words, param, channel)
	return doPlayerSendTextMessage(cid, 20, "You have " .. getPlayerStorageValue(cid, 34324) - os.time() .. ".")
end
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local time = getPlayerStorageValue(cid, 34324) + 3600
	if os.time() >= time then
		if getConfigValue("experienceStages") == "yes" then
			doPlayerSetExperienceRate(cid, getExperienceStage(getPlayerLevel(cid))*2)
		else
			doPlayerSetExperienceRate(cid, getConfigValue("rateExperience")*2)
			doRemoveItem(item.uid)
		end
		setPlayerStorageValue(cid, 34324, os.time())
	end
	return true
end
Code:
function onSay(cid, words, param, channel)
	return doPlayerSendTextMessage(cid, 20, "You have " .. getPlayerStorageValue(cid, 34324) - os.time() .. ".")
end

Thanks but when i say the talkaction appears this:

01:28 You have -1270535314. :/

Could you please make it more explainable. thanks :P
 
Hm... whow can i make so like the player get 125% exp and 150%? (125% more 25% exp and 150% more 50% lol)
ONly 2 time ea 24 hours... idk whow to edit the script :X and zarabustor huh!!! You are really copying liike me lol did you make health ring works?
 
Thanks but when i say the talkaction appears this:

01:28 You have -1270535314. :/

Could you please make it more explainable. thanks :P
try once with " .. os.time() .. " and once with " .. getPlayerStorageValue(cid, ....) .. " if they didnt work try it like this ;S " .. os.time() - getPlayerStorageValue(cid, ....) .. "
or " .. getPlayerStorageValue(cid, os.time()) .. "
 
Last edited:
Back
Top