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

Solved Help, Offline Traning , with training statues

furmanss

New Member
Joined
May 14, 2013
Messages
125
Reaction score
0
Ok so im just wondering how to fix the training statues on right click to get offline training, because the beds on the server works while training offline but not the statues? need any action scripts? btw 0.2.15 :)
 
Last edited:
there is nothing :( need scripts

Try this:

In actions:

LUA:
local statue = {
	[18488] = SKILL_SWORD,
	[18489] = SKILL_AXE,
	[18490] = SKILL_CLUB,
	[18491] = SKILL_DISTANCE,
	[18492] = SKILL_MAGLEVEL
	}
	
function onUse(cid, item, fromPosition, itemEx, toPosition)
local premiumDays = getPlayerPremiumDays(cid)

	if premiumDays > 0 then
		doPlayerSetOfflineTrainingSkill(cid, statue[item.itemid])
		doRemoveCreature(cid)
	else
		doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUNEEDPREMIUMACCOUNT)
	end
	return true
end

XML:
<action fromid="18488" toid="18492" script="offlinetraining.lua"/>
 
Last edited:
Try this:

In actions:

LUA:
local statue = {
	[18488] = SKILL_SWORD,
	[18489] = SKILL_AXE,
	[18490] = SKILL_CLUB,
	[18491] = SKILL_DISTANCE,
	[18492] = SKILL_MAGLEVEL
	}
	
function onUse(cid, item, fromPosition, itemEx, toPosition)
local premiumDays = getPlayerPremiumDays(cid)

	if premiumDays > 0 then
		doPlayerSetOfflineTrainingSkill(cid, statue[item.itemid])
		doRemoveCreature(cid)
	else
		doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUNEEDPREMIUMACCOUNT)
	end
	return true
end

XML:
<action fromid="18488" toid="18492" script="offlinetraining.lua"/>
Seems Magic training, does not work. Any ideas why?
 
Back
Top