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

Almoust done with my server, [Few things left] NEED HELP!!

Hiighwon

New Member
Joined
Mar 2, 2011
Messages
30
Reaction score
0
Hey! guys, I have started my server and everything is good about it, it's just that ia got a few things left and ive tried but can't fix them so i need youre help.

THNX !!!! for helping, Plz Answer !!



( Here is those things that im not done with )

1. I have made a Vip Medal quest but how ppl cant get it when they are done with quest and push on the cheast, it says Empty,

2. I Want to change the Website Laoyut ( Website Theme ), thewildwest.zapto.org, normal Laoyut like RL tibia.

3. I Need to change Vocation on the items, Donation items, Mostly of my Donation items are not for the Voc that they stands for, Mage items is for knight, need to change them. How?

4. I have made all Donation items good but i got a few Donation left that i don't know how to make them, (Donation Manarune, Donation UH, Super Sd, Never lose Aol (amulet), ring of sky (healing ring 50k each sec)

5. last one, I got a thing in my Tibia server that shotdown the server (server saving) it is good it shotdown it but it never open it again, i have to open the server manuell, so if there os anny program that tart the server auto it would be good or if i can take the (server saving) off.

Thnx very much for writing bak!! ;)

8.54 0.3.6 Forgetten My.sql,
 
1º I have made a Vip Medal quest but how ppl cant get it when they are done with quest and push on the cheast, it says Empty,
here you go
Lua:
function onUse(cid, item, frompos, item2, topos)
  	-- vip Quest
  	if item.uid == 1000 then
  		queststatus = getPlayerStorageValue(cid,1000)
  		if queststatus == -1 then
  			if getPlayerLevel(cid) >= 50 then  --- level need for make quest      
  				doPlayerSendTextMessage(cid,22,"You have found your vip medal.")
  				doPlayerAddItem(cid,2112,1)    ---- item id your vip medal
  				setPlayerStorageValue(cid,34871,1)
  			else
  				doPlayerSendTextMessage(cid,22,"You need level 50 to get prize.")
  			end
  		else
  			doPlayerSendTextMessage(cid,22,"It is empty.")
  		end
  	end
end

2º download gesior account have. tibiacom layout here you go http://otland.net/f118/gesior-0-3-8-a-114275/

3º for create other vocations go
data/XML open vocations.xml and delete everything and paste this
Code:
<?xml version="1.0" encoding="UTF-8"?>
<vocations>
	<vocation id="0" name="None" description="none" needpremium="0" gaincap="5" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="1" name="Sorcerer" description="a sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="20" gainmanaticks="2" gainmanaamount="20" manamultiplier="1.1" attackspeed="1200" soulmax="100" gainsoulticks="120" fromvoc="1">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="2" name="Druid" description="a druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="20" gainmanaticks="2" gainmanaamount="20" manamultiplier="1.1" attackspeed="1200" soulmax="100" gainsoulticks="120" fromvoc="2">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="3" name="Paladin" description="a paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="2" gainhpamount="20" gainmanaticks="2" gainmanaamount="20" manamultiplier="1.4" attackspeed="1200" soulmax="100" gainsoulticks="120" fromvoc="3">
		<formula meleeDamage="1.0" distDamage="1.3" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="4" name="Knight" description="a knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="20" gainmanaticks="2" gainmanaamount="20" manamultiplier="3.0" attackspeed="1200" soulmax="100" gainsoulticks="120" fromvoc="4">
		<formula meleeDamage="1.1" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="5" name="Master Sorcerer" description="a master sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="30" gainmanaticks="2" gainmanaamount="30" manamultiplier="1.1" attackspeed="1000" soulmax="200" gainsoulticks="15" fromvoc="1">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="6" name="Elder Druid" description="an elder druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="30" gainmanaticks="2" gainmanaamount="30" manamultiplier="1.1" attackspeed="1000" soulmax="200" gainsoulticks="15" fromvoc="2">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="7" name="Royal Paladin" description="a royal paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="2" gainhpamount="30" gainmanaticks="2" gainmanaamount="30" manamultiplier="1.4" attackspeed="1000" soulmax="200" gainsoulticks="15" fromvoc="3">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.3" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="8" name="Elite Knight" description="an elite knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="30" gainmanaticks="2" gainmanaamount="30" manamultiplier="3.0" attackspeed="1000" soulmax="200" gainsoulticks="15" fromvoc="4">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="9" name="Alchemist" description="an alchemist" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="1" gainhpamount="20" gainmanaticks="1" gainmanaamount="20" manamultiplier="1.1" attackspeed="800" soulmax="200" gainsoulticks="15" fromvoc="5">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="10" name="Biochemist" description="a biochemist" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="1" gainhpamount="20" gainmanaticks="1" gainmanaamount="20" manamultiplier="1.1" attackspeed="800" soulmax="200" gainsoulticks="15" fromvoc="6">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="11" name="Sniper" description="a sniper" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="1" gainhpamount="20" gainmanaticks="1" gainmanaamount="20" manamultiplier="1.4" attackspeed="800" soulmax="200" gainsoulticks="15" fromvoc="7">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.3" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
	</vocation>
	<vocation id="12" name="Warrior" description="a warrior" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="1" gainhpamount="20" gainmanaticks="1" gainmanaamount="20" manamultiplier="3.0" attackspeed="800" soulmax="200" gainsoulticks="15" fromvoc="8">
		<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
		<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
	</vocation>
</vocations>
now go data/lib open 031-vocations.lua and delete everything and paste this
PHP:
function isSorcerer(cid)
	return isInArray({1, 5, 9}, getPlayerVocation(cid))
end

function isDruid(cid)
	return isInArray({2, 6, 10}, getPlayerVocation(cid))
end

function isPaladin(cid)
	return isInArray({3, 7, 11}, getPlayerVocation(cid))
end

function isKnight(cid)
	return isInArray({4, 8, 12}, getPlayerVocation(cid))
end

function isRookie(cid)
	return isInArray({0}, getPlayerVocation(cid))
end

Now for Website, you need go to folder Config in your website and open config.php
Search list of Vocations on ots
under
PHP:
$vocation_name[0][1] = array(1 => 'Master Sorcerer', 2 => 'Elder Druid', 3 => 'Royal Paladin', 4 => 'Elite Knight'); // id => 'name' , $vocation_name[1] - promotion level 1, $vocation_name[0] - for world ID 0
paste this
PHP:
$vocation_name[0][2] = array(1 => 'Alchemist', 2 => 'Biochemist', 3 => 'Sniper', 4 => 'Warrior'); // id => 'name' , $vocation_name[1] - promotion level 1, $vocation_name[0] - for world ID 0


Now for edit weapons vips for only vocation go
data/movements.xml
open and search example
Lua:
	<movevent type="Equip" itemid="itemid" slot="armor" event="function" value="onEquipItem">
		<vocation id="9"/> <-- Vocation New Sorcerer
		<vocation id="10"/> <-- Vocation New Druid
		<vocation id="11"/> <-- Vocation New Paladin
		<vocation id="12"/> <-- Vocation New Knight
	</movevent>
	<movevent type="DeEquip" itemid="itemid" slot="armor" event="function" value="onDeEquipItem"/>


5º Dont understand you need restarter?
 
Last edited:
thank you very much ihave change the voc now:D all of it is very good, but 1. vip medal where am i going to paste that thing where??

5. t´restarter, my server says (serversaving...) then it close i w8 for like 5min it never open's again so i wnat to remove it i don't want it to close every time when it is serversaving....
 
And im still not undersanding the thing about the Genior acc, i have find a tutorial about genior acc but i still don't understand :s thnx annyway :D
 
Quit restarter men and
only use this save.lua

Lua:
<globalevent name="save" interval="5200000" event="script" value="save.lua"/>

data/globalevents save.lua
Lua:
local config = {
	broadcast = {120, 30},
	shallow = "no",
	delay = 120,
	events = 30
}

config.shallow = getBooleanFromString(config.shallow)

local function executeSave(seconds)
	if(isInArray(config.broadcast, seconds)) then
		local text = ""
		if(not config.shallow) then
			text = "Full s"
		else
			text = "S"
		end

		text = text .. "erver save within " .. seconds .. " seconds, please mind it may freeze!"
		doBroadcastMessage(text)
	end

	if(seconds > 0) then
		addEvent(executeSave, config.events * 1000, seconds - config.events)
	else
		doSaveServer(config.shallow)
	end
end

function onThink(interval, lastExecution, thinkInterval)
	if(table.maxn(config.broadcast) == 0) then
		doSaveServer(config.shallow)
	else
		executeSave(config.delay)
	end

	return true
end

@up
Medal VIP is in actions
data/actions create file vipmedal.lua
Lua:
function onUse(cid, item, frompos, item2, topos)
  	-- vip Quest
  	if item.uid == 1000 then
  		queststatus = getPlayerStorageValue(cid,1000)
  		if queststatus == -1 then
  			if getPlayerLevel(cid) >= 50 then --- level need for make quest      
  				doPlayerSendTextMessage(cid,22,"You have found your vip medal.")
  				doPlayerAddItem(cid,2112,1) ---- item id your vip medal
  				setPlayerStorageValue(cid,34871,1)
  			else
  				doPlayerSendTextMessage(cid,22,"You need level 50 to get prize.")
  			end
  		else
  			doPlayerSendTextMessage(cid,22,"It is empty.")
  		end
  	end
end

now open data/actions actions.xml
Lua:
<action itemid="xxxx" event="script" value="vipmedal.lua"/>
edit xxxx for ID your medal vip

or use system by kekox

http://otland.net/f163/best-vip-system-ever-action-movevent-globalevent-71638/
 
Last edited:
Back
Top