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

Unlock new voction

Joined
Jun 22, 2010
Messages
268
Solutions
1
Reaction score
5
Location
Usa, Utah
im using aries 4.0 xml for starters.
I dunno how to do this At the moment but something like if you are
x level and x vocation you receive an item only you can use and it teleports you to a place with on a different oracle that lets you create a new vocation but only 1 new char then you get teleeported out?

Any other ideas for this system are welcome.
other informatioin~~
I got 6 vocations the 4 normal and 2 extras that i want to be hard to get :P
 
Idea

You could make separate (small) guilds for each vocation for a specific level. Make a real npc oracle. Then in the Guildhouse have a chest with a teleport rune in it. Then it teleports them to oracle which you have scripted to turn them into a new vocation + back to level one. Then just have the oracle teleport them back to temple when they are done.
 
of course its possible :o
Code:
config = { 
RemainingLvl=8, -- Level that will be after oracle.
exper=4200, -- Experience that will be after oracle.
pid=getPlayerGUID(cid)
...
Code:
db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)

don't know how to make the rest, but i started;
 
I'm totally lost x)
I've been doing this stuff for like a week got no other programming experience or anything ;>

also at all possible to make this a use item function? someone sent me a script but its for tfs i think can someone convert? :]

newvocation.lua
LUA:
function onSay(cid, words, param, channel)
if getPlayerLevel(cid) >= 500 and getPlayerVocation == @Necro voc ID@ then
doPlayerAddExp(cid,-1000000000000000000000000)
doPlayerAddExp(cid,4200)
doPlayerSetVocation(cid,@Gangster voc ID@)
doCreatureAddHealth(cid, -getCreatureHealth(cid)+185)
doCreatureAddMana(cid, -getCreatureMana(cid)+35)
setCreatureMaxHealth(cid, 185)
setCreatureMaxMana(cid, 35)
end
end

pretty sure i know how to make it a "use item script but not 100% sure and also don't know what to convert help would be much appreciated if it works :D
 
Code:
local config = {
  level = 100,
  newLevel = 50,
  newVoc = 50
}

function onUse (cid, item, fromPosition, itemEx, toPosition)
  if getPlayerLevel(cid) >= config.level then
    if getPlayerVocation(cid) == 13 then
      doPlayerSetVocation(cid, config.newVoc)
      doPlayerAddLevel(cid, - (getPlayerLevel(cid) + config.newLevel))
      setCreatureMaxHealth(cid, 185)
      setCreatureMaxMana(cid, 35)
      doRemoveCreature(cid)
    end
  end
  return true
end

test this
 
doPlayerAddLevel(cid, - (getPlayerLevel(cid) + config.newLevel))

lets see, im level 100, new level 50...

-( 100 + 50 )
- 150

nice !! :X

btw nothing of this will work on his server, just look what server is he using :/
 
doPlayerAddLevel(cid - (getPlayerLevel)

and then + config.newLevel

which means he will be 50, or? xD (because first is negative [-])

edit: lol, didn't read that he wasn't using tfs..

edit2: jano explained in msn ^^ xd
 
Back
Top