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

TFS 0.3.6 - TFS 1.X

Itutorial

Legendary OT User
Joined
Dec 23, 2014
Messages
2,461
Solutions
68
Reaction score
1,123
This is meant for people who are new to TFS 1.x scripts... I made this list to help them transfer over.... Its not complete but it will give an idea of the changes.... Hope this helps someone.

Code:
PLAYER/CREATURE OBJECT
:getHealth()
:getMaxHealth()
:getMana()
:getMaxMana()
:getSpeakType()
:getMaster()
:getSummons()
:getOutfit()
:getPosition()
:getLookDirection()
:getName()
:getSpeed()
:getTarget()
:getSkullType()
:getCondition()
:getNoMove()
:getInfo()
:getLossSkill()
:getLossPercent()
getPlayerGUID(cid)
:getFood()
:getLevel()
:getExperience
:getMagLevel()
:getSpentMana()
getPlayerAccess(cid)
:getSkillLevel(skillId)
:getSkillTries(skillId)
:getTown()
:getVocation()
getPlayerItemCount(cid, itemid)
:getSoul()
:getFreeCap()
:getLight
:getSlotItem()
:getDepotItems(depotId)
:getSex()
:getStorageValue()
getPlayerGUID(cid)
:getFlagValue()
:getCustomFlagValue()
:getPromotionLevel()
:getGroupId()
:getLearnedInstantSpell(name)
:getLearnedInstantSpellCount()
:getInstantSpellInfo(index)
:getBlessing(blessing)
:getStamina
:getExtraExpRate()
:getPartner
:getParty()
:getPremiumDays()
:getBalance()
:getMoney()
:getSkullTicks()
:getRates()
:getLastLogin()
:getLastLoginSaved()

SET

:setMaxHealth(value)
:setMaxMana(value)
:setVocation(value)



DO

:addHealth(health)
:addMana(mana)
:setDropLoot(doDrop)
:setSkullType(skull)
:setLookDirection(dir)
:setMaxCapacity(cap)
:setOufit(outfit)
doCreatureSay(uid, text, type, pos)
doCreatureSetNoMove(cid, cannotMove)
:setLight(lightLevel, lightColor, time)
:remove([executeLogout = true])
doMoveCreature(cid, direction)
doConvinceCreature(cid, target)
doChallengeCreature(cid, target)
doChangeSpeed(cid, delta)
Game.summonMonster(name, Position(pos), true, false)
Game.createMonster(name, Position(pos), true, false)
Game.createNpc(name, Position(pos))
:broadcastMessage(message[, type])
:setSex(sex)
:setTown(townid)
:setVocation(voc)
:setStorageValue(key, amount)
:setGroupId(id)
:setPromotionLevel(level)
:setStamina(minutes)
:setBalance(balance)
:setExtraExpRate(rate)
:getPartner(GUID)
doPlayerRemoveItem(cid, itemid, count[, subtype])
:addExperience(exp)
:addOutfit(looktype, addons)
:removeOutfit(looktype, addons)
:setRedSkullTicks(amount)
:setLossPercent(lossType, newPercent)
:setLossSkill(doLose)
:addSkillTry(skillid, n)
:addManaSpent(amount)
:addSoul(soul)
doPlayerAddItem(uid, itemid[, count/subtype[, canDropOnMap = true]])
doPlayerAddItemEx(cid, uid[, canDropOnMap = false])
:sendTextMessage(MessageClasses, message)
:sendChannelMessage(author, message, SpeakClasses, channel)
:sendToChannel(targetId, SpeakClasses, message, channel[, time])
:addMoney(money)
:removeMoney(money)
:transferMoneyTo(cid, target, money)
:popupFYI(message)
:sendTutorial(id)
:addMapMarker(pos, type[, description])
:addPremiumDays(days)
:addBlessing(blessing)
:addStamina(minutes)
:resetIdleTime()
:learnInstantSpell(name)
:unlearnInstantSpell(name)
:feed(food)
:sendCancel(text)
:sendDefaultCancel(ReturnValue)
:setRate(type, value)
:joinParty(lid)
:sendOutfitWindow()
doPlayerSave(cid[, shallow = false])
 
Back
Top