Jump to content

Search the Community

Showing results for tags 'vocation'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • OpenTibia Development
    • Development Projects
    • Asset Show Off
    • Resources
    • Support
  • The Lounge
    • Discussion Board
    • Forum Games
    • Tibia Chat
    • Art Contests
    • Server Advertising
    • Forum Updates
  • Hosted Forums
    • OTList.net
    • Archived Hosted Forums

Categories

  • Distributions & Data Packs
  • Maps
  • Scripts
  • Monster & NPC Packs
  • Websites & Skins
    • CastroAAC
  • Tools
  • Clients
  • Graphics

Product Groups

  • Account Upgrades
  • Advertising Options
  • Necronia

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


MSN


Skype


Website URL


Discord


Tibian Name


Golden Awards


Location


Occupation


Interests


Biography

Found 20 results

  1. Felipe1880

    I have two questions to ask!

    1. Initially, I wondered about the class updates that already announced a while back. Is in progress, any news? 2. On the "translation" to PT-BR, it is on the way .. intend to launch with the official game? Some date or progress of the same? sorryy for bad english.
  2. Hello, I need help with script that allow players with druid vocation to change their vocation on spell. I want to make them all-in-one class, but with lower attributes. I have 3 additional vacations for Druid to change: druid-sorcerer druid-paladin druid-knight Every vocation have spell from their orginals, with additional spell to change back to druid. But vocation change code doesn't work... I tried: changetosorcerer.lua function onCastSpell(cid, var) doPlayerSetVocation(cid, 5) end spells.xml <instant name="Change to sorcerer" words="Sorcerer Form" lvl="1" mana="5" prem="0" aggressive="0" selftarget="1" exhaustion="0" needlearn="0" event="script" value="support/changetosorcerer.lua"> <vocation id="2"/> </instant> Help me guys :< Thanks
  3. Micool777

    Custom Server - Config.lua Source

    I am creating an Open Tibia server (v 8.62) under the instructions given by Nevermore (http://otland.net/f479/your-first-open-tibia-server-140934/), and I am quite curious as to where the config.lua's variables are being used so I can edit some functions that inhibit smooth usage of the Account Manager and some other aspects of the game. Is there some type of master script that handles all of these variables? Also, how would one create a custom spell? And one last thing - where are the vocations handled? I found the file titled "Vocations.xml" but when I change the name of several vocations, it gives errors when I run the server. Help would be much appreciated.
  4. Im attempting to make a "oracle" for 5 new vocations, Lycan, weaponmaster, cleric, magus, pirate. now i can get the oracle to grant the right vocations but after i log out and log back in from say the magus... im a sorcerer again. I was wondering if any skilled scripter could possibly help with my dilema. ty in advance. ps. cant post my current script atm on another cpu
  5. I have TFS .0.3.6 (Crying Damson) and I have been scanning the forums for a solution for TFS custom vocation problem. I have found a couple of threads, but I have not gotten any of them to work. The solution I think would work best, is setting storage values to players to assign their proper vocations, but I am not knowledgeable on scripting at all so I would appreciate some help with this. I need a NPC that sets vocations with storage values (but doesn't teleport the player anywhere) and a fix for the login.lua that checks the storage value and assigns the vocation based on that. I hope that all makes sense, anyway, any help would be appreciated.
  6. If someone would be so kind to delete this... Thank you! ~Spaz
  7. Fidde

    Need help with Quest!

    Hi folks, I'm working on a NPC that will give the player a quest there the player will slay a monster to get a dragonfetish, when that is done, the player will get an armor that depends on the vocation of the player, like this If the player is a Knight or a Paladin, he/she will get a Lavos Armor. If the player is a Druid or Sorcerer, he/she will get a Magma Coat. Also if it's possible the npc is willing to teleport the player to an area for a high amount of gold. And one more thing, I can't import the monster into my mepeditor. Here is the codes for the NPC: <?xml version="1.0" encoding="UTF-8"?> <npc name="Uthi" script="data/npc/scripts/uthi.lua" walkinterval="2000" floorchange="0"> <health now="3000" max="3000"/> <look type="39"/> <parameters> <parameter key="message_greet" value="Hello |PLAYERNAME|, what can I do for you?" /> <parameter key="keywords" value="job;help;quest;finnish;bye" /> <parameter key="module_keywords" value="1" /> <parameter key="keyword_reply1" value="I am the last dragon that fights on the side of humans of the Dragon Order, and you might {help} me?" /> <parameter key="keyword_reply2" value="I'm villing to give you a reward for this {quest}" /> <parameter key="keyword_reply3" value="I want you to say hello to an old friend of mine, his name is Feragorn, he is located in the desert of the town Pharao. But I must warn you, He is very strong." /> <parameter key="keyword_reply4" value="Ah! You took care of him? Good. Here is your reward!" /> <parameter key="keyword_reply5" value="So I am alone again." /> </parameters> </npc> and for the monster the player are going to kill <?xml version="1.0" encoding="UTF-8"?> <monster name="Fergorn Dragonrider" nameDescription="a dwarf" race="blood" experience="1650" speed="200" manacost="650"> <health now="2450" max="2450"/> <look type="70" corpse="6013"/> <targetchange interval="5000" chance="8"/> <strategy attack="100" defense="0"/> <flags> <flag summonable="1"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="1"/> <flag convinceable="1"/> <flag pushable="0"/> <flag canpushitems="1"/> <flag canpushcreatures="1"/> <flag targetdistance="1"/> <flag staticattack="90"/> <flag runonhealth="0"/> </flags> <attacks> <attack name="melee" interval="2000" min="60" max="200"/> </attacks> <defenses armor="15" defense="22"/> <elements> <element earthPercent="90"/> <element physicalPercent="20"/> <element firePercent="-5"/> <element deathPercent="-5"/> </elements> <immunities> <immunity invisible="1"/> </immunities> <voices interval="5000" chance="10"> <voice sentence="I comanding the skies to open!"/> </voices> <loot> <item id="2319" chance="25000"/><!-- dragonfetish --> </item> </loot> </monster> /Fidde.
  8. I'm trying to make an item upgrade system that will use several items to upgrade, and upgrade differently based on the vocation using these items. ie. Knight using Red Dragon eggs to upgrade increases armor, while Sorcerer using Red Dragon eggs to upgrade would increase mana regeneration speed(or give + 5 mana per second) I haven't actually looked at this thoroughly yet, I'm just wondering if there's already a script out there? Or if anyone has any helpful hints.
  9. scripter5

    [QUEST] Vocation based chest

    I have this code: It works fine when: 1) You have already done the quest 2) You don't have enough cap 3) It gives you the item when you meet the requirements, but the exe gives me this error: Can I get any help on this error? And maybe some comments on the code itself, any way to clean it up a bit? It's my first attempt at a chest that gives different items depending on your vocation.
  10. Massmurdera

    Custom Vocations and Potions!

    So I have custom vocations and the regular vocations, the custom ones are Juggernaut, Rogue, and Necromancer, however none of these are not able to use the higher level potions... I got stuck and confused when I saw this, cause I dont normally see this in scripts, usually like if vocation == 8 or something... if(not(isKnight(cid) or isPaladin(cid)) or (getPlayerLevel(cid) < 50)) and not(getPlayerGroupId(cid) >= 2) then Heres my potions.lua, i havent edited it or anything... local ultimateHealthPot = 8473 local greatHealthPot = 7591 local greatManaPot = 7590 local greatSpiritPot = 8472 local strongHealthPot = 7588 local strongManaPot = 7589 local healthPot = 7618 local manaPot = 7620 local smallHealthPot = 8704 local antidotePot = 8474 local greatEmptyPot = 7635 local strongEmptyPot = 7634 local emptyPot = 7636 local antidote = createCombatObject() setCombatParam(antidote, COMBAT_PARAM_TYPE, COMBAT_HEALING) setCombatParam(antidote, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(antidote, COMBAT_PARAM_TARGETCASTERORTOPMOST, TRUE) setCombatParam(antidote, COMBAT_PARAM_AGGRESSIVE, FALSE) setCombatParam(antidote, COMBAT_PARAM_DISPEL, CONDITION_POISON) local exhaust = createConditionObject(CONDITION_EXHAUST_HEAL) setConditionParam(exhaust, CONDITION_PARAM_TICKS, getConfigInfo('timeBetweenExActions')) function onUse(cid, item, fromPosition, itemEx, toPosition) if(itemEx.uid ~= cid or itemEx.itemid ~= 1) then return TRUE end if(getCreatureCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE) then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return TRUE end if(item.itemid == antidotePot) then if(doCombat(cid, antidote, numberToVariant(cid)) == LUA_ERROR) then return FALSE end doAddCondition(cid, exhaust) doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1) doTransformItem(item.uid, emptyPot) elseif(item.itemid == smallHealthPot) then if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 50, 100, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doAddCondition(cid, exhaust) doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1) doTransformItem(item.uid, emptyPot) elseif(item.itemid == healthPot) then if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 100, 200, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doAddCondition(cid, exhaust) doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1) doTransformItem(item.uid, emptyPot) elseif(item.itemid == manaPot) then if(doTargetCombatMana(0, cid, 70, 130, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doAddCondition(cid, exhaust) doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1) doTransformItem(item.uid, emptyPot) elseif(item.itemid == strongHealthPot) then if(not(isKnight(cid) or isPaladin(cid)) or (getPlayerLevel(cid) < 50)) and not(getPlayerGroupId(cid) >= 2) then doCreatureSay(cid, "This potion can only be consumed by paladins and knights of level 50 or higher.", TALKTYPE_ORANGE_1) return TRUE end if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 200, 400, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doAddCondition(cid, exhaust) doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1) doTransformItem(item.uid, strongEmptyPot) elseif(item.itemid == strongManaPot) then if(not(isSorcerer(cid) or isDruid(cid) or isPaladin(cid)) or (getPlayerLevel(cid) < 50)) and not(getPlayerGroupId(cid) >= 2) then doCreatureSay(cid, "This potion can only be consumed by sorcerers, druids and paladins of level 50 or higher.", TALKTYPE_ORANGE_1) return TRUE end if(doTargetCombatMana(0, cid, 110, 190, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doAddCondition(cid, exhaust) doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1) doTransformItem(item.uid, strongEmptyPot) elseif(item.itemid == greatSpiritPot) then if(not(isPaladin(cid)) or (getPlayerLevel(cid) < 80)) and not(getPlayerGroupId(cid) >= 2) then doCreatureSay(cid, "This potion can only be consumed by paladins of level 80 or higher.", TALKTYPE_ORANGE_1) return TRUE end if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 200, 400, CONST_ME_MAGIC_BLUE) == LUA_ERROR or doTargetCombatMana(0, cid, 110, 190, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doAddCondition(cid, exhaust) doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1) doTransformItem(item.uid, greatEmptyPot) elseif(item.itemid == greatHealthPot) then if(not(isKnight(cid)) or (getPlayerLevel(cid) < 80)) and not(getPlayerGroupId(cid) >= 2) then doCreatureSay(cid, "This potion can only be consumed by knights of level 80 or higher.", TALKTYPE_ORANGE_1) return TRUE end if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 500, 700, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doAddCondition(cid, exhaust) doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1) doTransformItem(item.uid, greatEmptyPot) elseif(item.itemid == greatManaPot) then if(not(isSorcerer(cid) or isDruid(cid)) or (getPlayerLevel(cid) < 80)) and not(getPlayerGroupId(cid) >= 2) then doCreatureSay(cid, "This potion can only be consumed by sorcerers and druids of level 80 or higher.", TALKTYPE_ORANGE_1) return TRUE end if(doTargetCombatMana(0, cid, 200, 300, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doAddCondition(cid, exhaust) doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1) doTransformItem(item.uid, greatEmptyPot) elseif(item.itemid == ultimateHealthPot) then if(not(isKnight(cid)) or (getPlayerLevel(cid) < 130)) and not(getPlayerGroupId(cid) >= 2) then doCreatureSay(cid, "This potion can only be consumed by knights of level 130 or higher.", TALKTYPE_ORANGE_1) return TRUE end if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 800, 1000, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then return FALSE end doAddCondition(cid, exhaust) doCreatureSay(cid, "Aaaah...", TALKTYPE_ORANGE_1) doTransformItem(item.uid, greatEmptyPot) end return TRUE end
  11. Massmurdera

    Vocation function

    is there any kind of vocation function like this? if vocation == 1 then setPlayervocation(cid, 5) My promotions wont work on my server, so i figured if i could just set them manually like that it would be a whole lot easier.
  12. i got a script which when u use it should give u a month of custom vocation for 8 donator tokens, there are no errors even when using the lever... here is the script time = 30*24*60*60*1000 oldvoc = getPlayerVocation(cid) function onUse(cid, item, frompos, item2, topos) if getPlayerVocation(cid, 1) == true or getPlayerVocation(cid, 5) == true then if getPlayerItemCount(cid,6527) >= 8 then doPlayerRemoveItem(cid,6527,8) doPlayerSetVocation(cid, 9) doPlayersendtextMessage(cid,24,"You have bought the hyper vocation for 30 days!") addEvent(onTime,time) elseif getPlayerVocation(cid, 2) == true or getPlayerVocation(cid, 6) == true then if getPlayerItemCount(cid,6527) >= 8 then doPlayerRemoveItem(cid,6527,8) doPlayerSetVocation(cid, 10) doPlayersendtextMessage(cid,24,"You have bought the hyper vocation for 30 days!") addEvent(onTime,time) elseif getPlayerVocation(cid, 3) == true or getPlayerVocation(cid, 7) == true then if getPlayerItemCount(cid,6527) >= 8 then doPlayerRemoveItem(cid,6527,8) doPlayerSetVocation(cid, 11) doPlayersendtextMessage(cid,24,"You have bought the hyper vocation for 30 days!") addEvent(onTime,time) elseif getPlayerVocation(cid, 4) == true or getPlayerVocation(cid, 8) == true then if getPlayerItemCount(cid,6527) >= 8 then doPlayerRemoveItem(cid,6527,8) doPlayerSetVocation(cid, 12) doPlayersendtextMessage(cid,24,"You have bought the hyper vocation for 30 days!") addEvent(onTime,time) end end end end end end function onTime() doPlayerSetVocation(cid, oldvoc) doPlayerSendTextMessage(cid,22,"Your Hyper vocation status has run out!") end sorry if its not tabbed how u like but it works for me
  13. i made a custom vocation which works fine untill you logout, the way i do it is to just change the vocation in the sql database, and it works fine untill they logout... here is the vocations.xml incase theres somthing here that is making it do this. <?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="10" fromvoc="0" attackable="no"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/> <skill id="0" multiplier="1.5"/> <skill id="1" multiplier="2.0"/> <skill id="2" multiplier="2.0"/> <skill id="3" multiplier="2.0"/> <skill id="4" multiplier="2.0"/> <skill id="5" multiplier="1.5"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="1" name="Sorcerer" description="a sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="4" gainmanaamount="50" manamultiplier="1.1" attackspeed="1000" soulmax="100" gainsoulticks="10" fromvoc="1"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/> <skill id="0" multiplier="1.5"/> <skill id="1" multiplier="2.0"/> <skill id="2" multiplier="2.0"/> <skill id="3" multiplier="2.0"/> <skill id="4" multiplier="2.0"/> <skill id="5" multiplier="1.5"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="2" name="Druid" description="a druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="4" gainmanaamount="50" manamultiplier="1.1" attackspeed="1000" soulmax="100" gainsoulticks="10" fromvoc="2"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/> <skill id="0" multiplier="1.5"/> <skill id="1" multiplier="1.8"/> <skill id="2" multiplier="1.8"/> <skill id="3" multiplier="1.8"/> <skill id="4" multiplier="1.8"/> <skill id="5" multiplier="1.5"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="3" name="Paladin" description="a paladin" needpremium="0" gaincap="20" gainhp="25" gainmana="10" gainhpticks="4" gainhpamount="50" gainmanaticks="4" gainmanaamount="50" manamultiplier="1.4" attackspeed="1000" soulmax="100" gainsoulticks="10" fromvoc="3"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/> <skill id="0" multiplier="1.2"/> <skill id="1" multiplier="1.2"/> <skill id="2" multiplier="1.2"/> <skill id="3" multiplier="1.2"/> <skill id="4" multiplier="1.1"/> <skill id="5" multiplier="1.1"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="4" name="Knight" description="a knight" needpremium="0" gaincap="25" gainhp="30" gainmana="5" gainhpticks="4" gainhpamount="50" gainmanaticks="4" gainmanaamount="50" manamultiplier="3.0" attackspeed="1000" soulmax="100" gainsoulticks="10" fromvoc="4"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/> <skill id="0" multiplier="1.1"/> <skill id="1" multiplier="1.1"/> <skill id="2" multiplier="1.1"/> <skill id="3" multiplier="1.1"/> <skill id="4" multiplier="1.4"/> <skill id="5" multiplier="1.1"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="5" name="Master Sorcerer" description="a master sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="5000" gainmanaticks="3" gainmanaamount="5000" manamultiplier="1.1" attackspeed="1000" soulmax="200" gainsoulticks="10" fromvoc="1"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/> <skill id="0" multiplier="1.5"/> <skill id="1" multiplier="2.0"/> <skill id="2" multiplier="2.0"/> <skill id="3" multiplier="2.0"/> <skill id="4" multiplier="2.0"/> <skill id="5" multiplier="1.5"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="6" name="Elder Druid" description="an elder druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="5000" gainmanaticks="3" gainmanaamount="5000" manamultiplier="1.1" attackspeed="1000" soulmax="200" gainsoulticks="10" fromvoc="2"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/> <skill id="0" multiplier="1.5"/> <skill id="1" multiplier="1.8"/> <skill id="2" multiplier="1.8"/> <skill id="3" multiplier="1.8"/> <skill id="4" multiplier="1.8"/> <skill id="5" multiplier="1.5"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="7" name="Royal Paladin" description="a royal paladin" needpremium="0" gaincap="20" gainhp="25" gainmana="10" gainhpticks="3" gainhpamount="5000" gainmanaticks="3" gainmanaamount="5000" manamultiplier="1.4" attackspeed="1000" soulmax="200" gainsoulticks="10" fromvoc="3"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/> <skill id="0" multiplier="1.2"/> <skill id="1" multiplier="1.2"/> <skill id="2" multiplier="1.2"/> <skill id="3" multiplier="1.2"/> <skill id="4" multiplier="1.1"/> <skill id="5" multiplier="1.1"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="8" name="Elite Knight" description="an elite knight" needpremium="0" gaincap="25" gainhp="30" gainmana="5" gainhpticks="3" gainhpamount="5000" gainmanaticks="3" gainmanaamount="5000" manamultiplier="3.0" attackspeed="1000" soulmax="200" gainsoulticks="10" fromvoc="4"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/> <skill id="0" multiplier="1.1"/> <skill id="1" multiplier="1.1"/> <skill id="2" multiplier="1.1"/> <skill id="3" multiplier="1.1"/> <skill id="4" multiplier="1.4"/> <skill id="5" multiplier="1.1"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="9" name="Hyper Sorcerer" description="a hyper sorcerer" needpremium="1" gaincap="10" gainhp="10" gainmana="60" gainhpticks="1" gainhpamount="30000" gainmanaticks="1" gainmanaamount="30000" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="10" fromvoc="5"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/> <skill id="0" multiplier="1.5"/> <skill id="1" multiplier="2.0"/> <skill id="2" multiplier="2.0"/> <skill id="3" multiplier="2.0"/> <skill id="4" multiplier="2.0"/> <skill id="5" multiplier="1.5"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="10" name="Hyper Druid" description="a hyper druid" needpremium="1" gaincap="10" gainhp="10" gainmana="60" gainhpticks="1" gainhpamount="30000" gainmanaticks="1" gainmanaamount="30000" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="10" fromvoc="6"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/> <skill id="0" multiplier="1.5"/> <skill id="1" multiplier="1.8"/> <skill id="2" multiplier="1.8"/> <skill id="3" multiplier="1.8"/> <skill id="4" multiplier="1.8"/> <skill id="5" multiplier="1.5"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="11" name="Hyper Paladin" description="a hyper paladin" needpremium="1" gaincap="20" gainhp="50" gainmana="20" gainhpticks="1" gainhpamount="30000" gainmanaticks="1" gainmanaamount="30000" manamultiplier="1.4" attackspeed="500" soulmax="200" gainsoulticks="10" fromvoc="7"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/> <skill id="0" multiplier="1.2"/> <skill id="1" multiplier="1.2"/> <skill id="2" multiplier="1.2"/> <skill id="3" multiplier="1.2"/> <skill id="4" multiplier="1.1"/> <skill id="5" multiplier="1.1"/> <skill id="6" multiplier="1.1"/> </vocation> <vocation id="12" name="Hyper Knight" description="a hyper knight" needpremium="1" gaincap="25" gainhp="60" gainmana="10" gainhpticks="1" gainhpamount="30000" gainmanaticks="1" gainmanaamount="30000" manamultiplier="3.0" attackspeed="500" soulmax="200" gainsoulticks="10" fromvoc="8"> <formula meleeDamage="1.0" distDamage="1.0" defense="1.0" armor="1.0"/> <skill id="0" multiplier="1.1"/> <skill id="1" multiplier="1.1"/> <skill id="2" multiplier="1.1"/> <skill id="3" multiplier="1.1"/> <skill id="4" multiplier="1.4"/> <skill id="5" multiplier="1.1"/> <skill id="6" multiplier="1.1"/> </vocation> </vocations>
  14. Sorry, I could do it alone. Too much text for a description (believe it or not, that was the answer for the question). Any mod close this thread, please
  15. tozikrules

    vocation/vip door problems

    hi, i have some vocation doors in my server which work perfectly fine, but when i tried to make a vip door (just changing the voc numbers) it wouldnt work in the server... here is the normal voc door i use function onUse(cid, item, frompos, item2, topos) if item.uid == 10093 then if getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 17 or getPlayerVocation(cid) == 6 then doPlayerSendTextMessage(cid, 22, "You can pass, you are a Druid.") pos = getPlayerPosition(cid) if pos.x == topos.x then if pos.y < topos.y then pos.y = topos.y + 1 else pos.y = topos.y - 1 end elseif pos.y == topos.y then if pos.x < topos.x then pos.x = topos.x + 1 else pos.x = topos.x - 1 end else doPlayerSendTextMessage(cid,22,'Please stand in front of the door.') return 1 end doTeleportThing(cid,pos) doSendMagicEffect(topos,12) else doPlayerSendTextMessage(cid,22,'You can\'t pass, you aren\'t a Druid.') end return 1 else return 0 end end and here is the vip door i made function onUse(cid, item, frompos, item2, topos) if item.uid == 10093 then if getPlayerVocation(cid) == 16 or getPlayerVocation(cid) == 17 or getPlayerVocation(cid) == 18 or getPlayerVocation(cid) == 19 then doPlayerSendTextMessage(cid, 22, "You can pass, you are Vip.") pos = getPlayerPosition(cid) if pos.x == topos.x then if pos.y < topos.y then pos.y = topos.y + 1 else pos.y = topos.y - 1 end elseif pos.y == topos.y then if pos.x < topos.x then pos.x = topos.x + 1 else pos.x = topos.x - 1 end else doPlayerSendTextMessage(cid,22,'Please stand in front of the door.') return 1 end doTeleportThing(cid,pos) doSendMagicEffect(topos,12) else doPlayerSendTextMessage(cid,22,'You can\'t pass, you aren\'t Vip.') end return 1 else return 0 end end if anyone knows where ive gone wrong here please tell me or if you could tell me how to make a tile which makes you step back if your not the right vocation. thanks.
  16. Dingens92

    Damned another Problem...

    Hey, I have a Question/Problem...as you know the armors, legs,.... require vocations...can someone say me where i can chance these?? for example only gm sets or so... and the Problem is a Warrior can be equiped with golden legs, etc.. but no Death Knight! I've someone can say me where i can chance this, pls help! I'm using Armonia (SQL) for Vers. 8.4
  17. tipsy

    VIP and 3rd Vocation

    Hello, I know how to finish the 3rd vocation when the VIPdays end.... vip again and place the 3rd vocation call back to the character Sorry for my english, Tanks.
  18. Ragheed

    I don't get it!!!

    I'm a man with a few words. This is the script: -- ==>CONFIG<== -- local possorcerer = { x = X, y = X, z = X } -- change this to the position of the sorcerer or MS. local posdruid = { x = X, y = X, z = X } -- change this to the position of the druid or ED. local pospaladin = { x = X, y = X, z = X } -- change this to the position of the paladin or RP. local posknight = { x = X, y = X, z = X } -- change this to the position of the knight or EK. local player_text = "Here I go!" -- change this to the text the player will say if he/she uses the swich. local mag_effect = 13 -- change this to the magiceffect you want. local player_voc = getPlayerVocation(cid) -- DO NOT CHANGE THIS! local player_pos = getPlayerPosition(cid) -- DO NOT CHANGE THIS! -- ==>/CONFIG<== -- function onUse(cid, item, fromPosition, itemEx, toPosition) if player_voc == 1 or player_voc == 4 then doTeleportThing(cid, possorcerer) doSendMagicEffect(player_pos,mag_effect) doPlayerSay(cid,"player_text",TALKTYPE_ORANGE_1) doChangeTypeItem(cid, 1946) elseif player_voc == 2 or player_voc == 6 then doTeleportThing(cid, posdruid) doSendMagicEffect(player_pos,mag_effect) doPlayerSay(cid,"player_text",TALKTYPE_ORANGE_1) doChangeTypeItem(cid, 1946) elseif player_voc == 3 or player_voc == 7 then doTeleportThing(cid, pospaladin) doSendMagicEffect(player_pos,mag_effect) doPlayerSay(cid,"player_text",TALKTYPE_ORANGE_1) doChangeTypeItem(cid, 1946) elseif player_voc == 4 or player_voc == 8 then doTeleportThing(cid, posknight) doSendMagicEffect(player_pos, mag_effect) doPlayerSay(cid,"player_text",TALKTYPE_ORANGE_1) doChangeTypeItem(cid, 1946) end end Now there are a few problems. First one: when I load the server it says: This means that the getPlayerPosition command didn't work. But why? As you can see in the script I filled in the config: local player_pos = getPlayerPosition and I filled everywhere in the script where getPlayerPosition has to be, player_pos in. It ain't workin! The only way I know to fix this is to replace all the player_pos in the script, and put getPlayerPosition(cid) instead of it, but I though this has to work if I put that local in config? The second problem: if someone uses the swich, I want the player to say "Here I go!", and I did that as you can see, I filled in config: local player_text = "Here I go!" and i filled in the script player_text, but if someone uses the switch ingame, he's not saying Here I go!, but player_text, the same thing which is filled in the script. The only way to fix this is, is the same as the getPlayerPosition-problem, to replace all the 4 player_text with the text I want the player to say! But I only want to change it in config. Third problem: when the swich is used i want that the swich really get swiched so the swich gets to the other place. I though I could do that with the command: doChangeTypeItem(cid, 1946), because the *original* swich has the id 1945. Now this is the really weird thing: as you just saw, some of the local commands in config didn't work, such as player_pos and player_text, but the others did work! And all are made just for the same thing, to edit things only once in config, and not 2 or more times in the script... Thank you in advance. PS: I'm a beginner of scripting >.< Sorry for my bad English!
  19. Basically i'll be working on this, I've thought about it for awhile. Basically I need 2 talkactions. 1 Will display when your "team" is online (Will be 3 vocations for each race, and 4 races) such as local race1 = vocation 1, 2 or 3 local race2 = vocation 4, 5 or 6 etc. get player vocation get players online if vocation = same race show online players with same race vocation (yes I know thats not correct LUA scripting but you get the point) and the second would be a !tell that sends a message to everyone on your team. If I can find out how to do one I can probably do the other but if anyone already knows HOW to do these it would be greatly appreciated if you'd help out .
  20. The World Of Fun

    Vocation Balance

    How can i make a good vocation balance? Because i want to make a good rpg server.
×

Important Information

Privacy Policy