CoakFraustt
New Member
- Joined
- Aug 29, 2020
- Messages
- 14
- Reaction score
- 1
Okay ive created a new way to function (Elemental Clans) so after element is chosen (example: Jungle)the promotion reveals a choice of 3 classes (Juggernaut, Sage & Which Doctor) when promoting and selecting a class it does all coded functions aside from the vocationid change, what can i do to fix this
Code
Code
Lua:
elseif msgcontains(msg, 'i choose jungle') and (getPlayerLevel(cid) >= 20) then
npcHandler:say('Would you like tho choose a vocation for 10000 gold coins? A player\'s vocation shapes their entire life. It usually dictates what kind of weapons they use, what kind of magic spells they will be able to learn, what kind of creatures they prefer to hunt, and many more things about them.', cid)
npcHandler:say('You will also be able to gain more level, also health, mana and capacity points depending on wich vocation you choose every time you gain a level.', cid)
npcHandler:say('Do wish to continue?', cid)
talk_state = 3
elseif msgcontains(msg, 'yes') and talk_state == 3 then
npcHandler:say('What profession have you chosen: A {ephemeral}, a {sage}, or an {enchanter}?', cid)
talk_state = 4
elseif msgcontains(msg, 'ephemeral') and talk_state == 4 then
npcHandler:say('ephemeral is fastest in club level advance and masters of aggressive and offensive magic. ', cid)
npcHandler:say('Are you sure that a ephemeral is what you wish to become? This decision is irreversible!', cid)
talk_state = 5
elseif msgcontains(msg, 'yes') and talk_state == 16 and getPlayerMoney(cid) >= 100 then
npcHandler:say('So be it! The magic of the ephemeral is a powerful tool to smite our enemies.', cid)
npcHandler:say('Ask {Lily} for a club.', cid)
doPlayerSetVocation(cid, 18)
doPlayerAddLevel(cid, 1)
doPlayerRemoveMoney(cid, 100)
doSendMagicEffect(getCreaturePosition(cid),14)
talk_state = 0
elseif msgcontains(msg, 'sage') and talk_state == 4 then
npcHandler:say('Sage is the fastest in magic level advance and slightly better with powers than most and masters of healing and supportive magic.', cid)
npcHandler:say('Are you sure that a sage is what you wish to become? This decision is irreversible!', cid)
talk_state = 6
elseif msgcontains(msg, 'yes') and talk_state == 17 and getPlayerMoney(cid) >= 100 then
npcHandler:say('So be it! We need the sage like healing powers to fight evil.', cid)
doPlayerSetVocation(cid, 19)
doPlayerAddLevel(cid, 1)
doPlayerRemoveMoney(cid, 100)
doSendMagicEffect(getCreaturePosition(cid),14)
talk_state = 0
elseif msgcontains(msg, 'enchanter') and talk_state == 4 then
npcHandler:say('Witch Doctor advances fastest in poison fighting. Advances very slowly in magic.', cid)
npcHandler:say('Are you sure that a enchanter is what you wish to become? This decision is irreversible!', cid)
talk_state = 8
elseif msgcontains(msg, 'yes') and talk_state == 18 and getPlayerMoney(cid) >= 100 then
npcHandler:say('So be it! The brave enchanter are necessary for human survival.', cid)
doPlayerSetVocation(cid, 20)
doPlayerAddLevel(cid, 1)
doPlayerRemoveMoney(cid, 100)
doSendMagicEffect(getCreaturePosition(cid),14)
talk_state = 0