Jump to content
  • 0

Npc Reset.


godjean

Question

Ola pessoal então meu amigo passo um script de npc hoje.

Ele reseta o player e da certas coisas para ele ao resetar uma delas é vocation ...essas coisas ae o script.(Ele é 7.92 eu gostaria passa ele para 8.54)

 

 elseif msgcontains(msg, 'reset') then
 if vezes == -1 or vezes == 0 then
  selfSay('Reset a god? Hmm... First time? Ok, i will do it free this time!')
  talk_state = 6
 else
  selfSay('Reset a god? Hmm... Sure I can, but it will not be cheap, what do you say about ' .. rubys .. ' ruby coins?')
  talk_state = 6
 end

-- reset
elseif talk_state == 6 then
--rubys = (getPlayerLevel(cid)*4000)*(vezes*10)/1000000)
if msgcontains(msg, 'yes') then
if isPremium(cid) then
if getPlayerLevel(cid) >= 400 then
if getPlayerVocation(cid) >= 9 then
--if pay(cid,(getPlayerLevel(cid)*4000)*(vezes*10)) then
	if getPlayerVocation(cid) == 13 then -- deuses
	if getPlayerLevel(cid) >= 500 then
if getPlayerItemCount(cid,13685) >= rubys then
 selfSay('Welcome new god!')
 doPlayerSendTextMessage(cid,22,"Você resetou seu personagem.")
 health = getCreatureMaxHealth(cid)
 mana = getCreatureMaxMana(cid)
 doPlayerAddExp(cid,-10000000000)
 doCreatureChangeMaxHealth(cid, (health/10)*(vezes+1))
 doCreatureAddHealth(cid,(health/10)*(vezes+1))
 doCreatureChangeMaxMana(cid, (mana/15)*(vezes+1))
 doPlayerAddMana(cid,(mana/15)*(vezes+1))
 doPlayerMagicLevel(cid,25)
doSendMagicEffect(getPlayerPosition(cid),12)
 setPlayerStorageValue(cid,7777,vezes+1)
 doPlayerTakeItem(cid,13685,rubys)
 talk_state = 0
 else
 selfSay('Sorry mortal, but you dont have this monney!')
 talk_state = 0
 end
 else
 selfSay('Sorry, but only gods level 500 or above can do that!')
 talk_state = 0
 end
end
	if getPlayerVocation(cid) == 14 then
	if getPlayerLevel(cid) >= 500 then
if getPlayerItemCount(cid,13685) >= rubys then
 selfSay('Welcome new god!')
 doPlayerSendTextMessage(cid,22,"Você resetou seu personagem.")
 health = getCreatureMaxHealth(cid)
 mana = getCreatureMaxMana(cid)
 doPlayerAddExp(cid,-10000000000)
 doCreatureChangeMaxHealth(cid, (health/10)*(vezes+1))
 doCreatureAddHealth(cid,(health/10)*(vezes+1))
 doCreatureChangeMaxMana(cid, (mana/15)*(vezes+1))
 doPlayerAddMana(cid,(mana/15)*(vezes+1))
 doPlayerMagicLevel(cid,25)
doSendMagicEffect(getPlayerPosition(cid),12)
 setPlayerStorageValue(cid,7777,vezes+1)
 doPlayerTakeItem(cid,13685,rubys)
 talk_state = 0
 else
 selfSay('Sorry mortal, but you dont have this monney!')
 talk_state = 0
 end
 else
 selfSay('Sorry, but only gods level 500 or above can do that!')
 talk_state = 0
 end
end
	if getPlayerVocation(cid) == 15 then
	if getPlayerLevel(cid) >= 500 then
if getPlayerItemCount(cid,13685) >= rubys then
 selfSay('Welcome new god!')
 doPlayerSendTextMessage(cid,22,"Você resetou seu personagem.")
 health = getCreatureMaxHealth(cid)
 mana = getCreatureMaxMana(cid)
 doPlayerAddExp(cid,-10000000000)
 doCreatureChangeMaxHealth(cid, (health/10)*(vezes+1))
 doCreatureAddHealth(cid,(health/10)*(vezes+1))
 doCreatureChangeMaxMana(cid, (mana/10)*(vezes+1))
 doPlayerAddMana(cid,(mana/10)*(vezes+1))
 doPlayerMagicLevel(cid,5)
 doPlayerAddSkill(cid,4,25)
 doPlayerAddSkill(cid,5,25)
doSendMagicEffect(getPlayerPosition(cid),12)
 setPlayerStorageValue(cid,7777,vezes+1)
 doPlayerTakeItem(cid,13685,rubys)
 talk_state = 0
 else
 selfSay('Sorry mortal, but you dont have this monney!')
 talk_state = 0
 end
 else
 selfSay('Sorry, but only gods level 500 or above can do that!')
 talk_state = 0
 end
end
	if getPlayerVocation(cid) == 16 then
	if getPlayerLevel(cid) >= 500 then
if getPlayerItemCount(cid,13685) >= rubys then
 selfSay('Welcome new god!')
 doPlayerSendTextMessage(cid,22,"Você resetou seu personagem.")
 health = getCreatureMaxHealth(cid)
 mana = getCreatureMaxMana(cid)
 doPlayerAddExp(cid,-10000000000)
 doCreatureChangeMaxHealth(cid, (health/10)*(vezes+1))
 doCreatureAddHealth(cid,(health/10)*(vezes+1))
 doCreatureChangeMaxMana(cid, (mana/10)*(vezes+1))
 doPlayerAddMana(cid,(mana/10)*(vezes+1))
 doPlayerAddSkill(cid,0,25)
 doPlayerAddSkill(cid,1,25)
 doPlayerAddSkill(cid,2,25)
 doPlayerAddSkill(cid,3,25)
 doPlayerAddSkill(cid,5,25)
doSendMagicEffect(getPlayerPosition(cid),12)
 setPlayerStorageValue(cid,7777,vezes+1)
 doPlayerTakeItem(cid,13685,rubys)
 talk_state = 0
 else
 selfSay('Sorry mortal, but you dont have this monney!')
 talk_state = 0
 end
 else
 selfSay('Sorry, but only gods level 500 or above can do that!')
 talk_state = 0
 end
end
if getPlayerStorageValue(cid,7777) <= 0 and getPlayerVocation(cid) >= 13 and getPlayerLevel(cid) >= 500 then
 setPlayerStorageValue(cid,7777,1)
end

	if getPlayerVocation(cid) >= 9 and getPlayerVocation(cid) < 13 then -- semis
if getPlayerItemCount(cid,6500) >= 1000 then
 selfSay('Oh! Now you are a god!')
	 if getPlayerVocation(cid) >= 9 and getPlayerVocation(cid) < 11 then
 doPlayerMagicLevel(cid,10)
 end
	 if getPlayerVocation(cid) == 11 then
 doPlayerMagicLevel(cid,2)
 doPlayerAddSkill(cid,4,10)
 doPlayerAddSkill(cid,5,10)
 end
	 if getPlayerVocation(cid) == 12 then
 doPlayerAddSkill(cid,0,10)
 doPlayerAddSkill(cid,1,10)
 doPlayerAddSkill(cid,2,10)
 doPlayerAddSkill(cid,3,10)
 doPlayerAddSkill(cid,5,10)
 end
 doPlayerSendTextMessage(cid,22,"Você evoluiu seu espírito a Deus.")
 doPlayerAddExp(cid,-10000000000)
 doCreatureChangeMaxHealth(cid,185)
 doCreatureAddHealth(cid,185)
 doCreatureChangeMaxMana(cid,35)
 doPlayerAddMana(cid,35)
 doPlayerSetVocation(cid, getPlayerVocation(cid)+4)
doSendMagicEffect(getPlayerPosition(cid),12)
 doPlayerTakeItem(cid,6500,100)
 talk_state = 0
 else
 selfSay('Sorry, but you dont have the 100 demoniac essense!')
 talk_state = 0
 end
end
 else
 selfSay('Sorry, but only gods i can do that!')
 talk_state = 0
 end
 else
 selfSay('Sorry, but only gods level 500 or above can do that!')
 talk_state = 0
 end
 else
 selfSay('Sorry but only can reset a god premmy.')
 talk_state = 0
 end
 end
 --end

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.
×
×
  • Create New...