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

Tutorial Epic promotion

Status
Not open for further replies.

grusc

New Member
Joined
Jan 31, 2011
Messages
16
Reaction score
0
Witam, mam nastepujacy problem, posiadam tfs 0.3.6 pl1 8.54/8.55 i jest na nim w vocations.xml profesja epic, i to o nia sie rozchodzi bo chcialem ja jakos tknąc w zycie servera, ale:
1. Npc u ktorego sie kupuje nie reaguje na polecenie "epic"
zródlo:

Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid)			npcHandler:onCreatureAppear(cid)			end
function onCreatureDisappear(cid)		npcHandler:onCreatureDisappear(cid)			end
function onCreatureSay(cid, type, msg)		npcHandler:onCreatureSay(cid, type, msg)		end
function onThink()				npcHandler:onThink()					end

local node1 = keywordHandler:addKeyword({'promot'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can promote you for 20000 gold coins. Do you want me to promote you?'})
	node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 20000, level = 20, promotion = 1, text = 'Congratulations! You are now promoted.'})
	node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true})   [
local node2 = keywordHandler:addKeyword({'firstcode'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can epicize you for 200000 gold coins. Do you want me to epicize you?'})
	node2:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 200000, level = 120, promotion = 2, text = 'Congratulations! You are now epicized.'})
	node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true})   npcHandler:addModule(FocusModule:new())

2. Gdy zmieniam vocation w bazie danych na 9,10,11,12 to w przypadku:
a) nowej swiezej postaci 10lvl wszystko dziala do czasu reloga, po przelogowaniu zamiast Epic Elite Knight jest zwykły EK a w bazie nie ma nawet promotion na 1 ;o
b) gdy daje epic postaci ktora juz troche grala wydaje sie byc dobrze, hp leci jak nalezy mana tez, ale problem sie pojawia gdy postac raz uderzy, postac sie wiesza i nie mozna sie zalogowac.
3. gdy dodaje vocation i promote w bazie pisze na postaci "You are ."
4.W weapons.xml dodawalem profesje ale nic to nie zmienia
5. Zamieszczam vocations.xml
Code:
<?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="340" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="1" name="Sorcerer" description="a sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="10" gainmanaticks="3" gainmanaamount="15" manamultiplier="1.1" attackspeed="1600" soulmax="100" gainsoulticks="120" fromvoc="1">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.0" club="1.0" sword="1.0" axe="1.0" distance="1.0" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="2" name="Druid" description="a druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="10" gainmanaticks="3" gainmanaamount="15" manamultiplier="1.1" attackspeed="1600" soulmax="100" gainsoulticks="120" fromvoc="2">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="3" name="Paladin" description="a paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="4" gainhpamount="10" gainmanaticks="4" gainmanaamount="15" manamultiplier="1.4" attackspeed="1600" soulmax="100" gainsoulticks="120" fromvoc="3">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.2" fishing="1.0" experience="1.0"/>
</vocation>
<vocation id="4" name="Knight" description="a knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="3" gainhpamount="10" gainmanaticks="6" gainmanaamount="15" manamultiplier="3.0" attackspeed="1600" soulmax="100" gainsoulticks="120" fromvoc="4">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="5" name="Master Sorcerer" description="a master sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="15" gainmanaticks="2" gainmanaamount="20" manamultiplier="1.1" attackspeed="1100" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="6" name="Elder Druid" description="an elder druid" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="15" gainmanaticks="2" gainmanaamount="20" manamultiplier="1.1" attackspeed="1100" soulmax="200" gainsoulticks="15" fromvoc="2" lessloss="30">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="7" name="Royal Paladin" description="a royal paladin" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="15" gainmanaticks="3" gainmanaamount="20" manamultiplier="1.4" attackspeed="1100" soulmax="200" gainsoulticks="15" fromvoc="3" lessloss="30">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="8" name="Elite Knight" description="an elite knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="15" gainmanaticks="4" gainmanaamount="20" manamultiplier="3.0" attackspeed="1100" soulmax="200" gainsoulticks="15" fromvoc="4" lessloss="30">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
</vocation>

<vocation id="9" name="Super Sorcerer" description="a Epic Master Sorcerer" needpremium="1" gaincap="20" gainhp="8" gainmana="35" gainhpticks="3" gainhpamount="20" gainmanaticks="1" gainmanaamount="30" manamultiplier="0.9" attackspeed="600" soulmax="300" gainsoulticks="15" fromvoc="5" lessloss="40">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="10" name="Super Druid" description="a Epic Elder Druid" needpremium="1" gaincap="20" gainhp="8" gainmana="35" gainhpticks="3" gainhpamount="20" gainmanaticks="1" gainmanaamount="30" manamultiplier="0.9" attackspeed="600" soulmax="300" gainsoulticks="15" fromvoc="6" lessloss="40">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="11" name="Super Paladin" description="a Epic Royal Paladin" needpremium="1" gaincap="30" gainhp="13" gainmana="20" gainhpticks="2" gainhpamount="20" gainmanaticks="2" gainmanaamount="25" manamultiplier="1.2" attackspeed="600" soulmax="300" gainsoulticks="15" fromvoc="7" lessloss="40">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="0.9" shielding="1.0" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="12" name="Super Knight" description="a Epic Elite Knight" gaincap="35" gainhp="18" gainmana="10" gainhpticks="1" gainhpamount="20" gainmanaticks="3" gainmanaamount="25" manamultiplier="2.9" attackspeed="600" soulmax="300" gainsoulticks="15" fromvoc="8" lessloss="40">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.1" club="0.9" sword="0.9" axe="0.9" distance="1.4" shielding="0.9" fishing="1.1" experience="1.0"/>
</vocation>
</vocations>

Prosze o pomoc osobe ktora miala z tym styk, lub ktora posiada ta promocje na swoim serverze.
 
Z tego co pamiętam, to w libach musisz dodać nową profke, u mnie to plik 031-vocations.lua.
 
Dodałem ale nie pomogło, rozwiązałem to w sposob ze w vocations.xml jak jest np "fromvoc="4" " wpisalem id nowej profesji czyli "fromvoc="12" "
Tylko jest taki problem gdy kupuje ta postacia promocje usuwa sie vocation. Ma ktos scrypt na npc sprzedajacego promocje, ale aby bylo takie cos ze npc nie obsluguje lub pisze ze juz ma promocje postaci ktora posiada vocation id 9,10,11,12??

Z tego co pamiętam, to w libach musisz dodać nową profke, u mnie to plik 031-vocations.lua.

Dobrze mowisz, mialem tam plik vocation.lua i to w nim zmienialem, a nie zauwazylem ze jest jeszcze ten 031-vocations.lua, dodałem i promocja ładnie hula, podziekowal ;] Temat do zamkniecia
 
Last edited by a moderator:
Status
Not open for further replies.
Back
Top