VM

[9.1] 4Fun Server

Por Vmspk, 21 de ago. de 2011 em OTServ Comum

otserv
tibia
script
165
47.8k
luccasspfcL
23 de agosto de 2011 às 12:54

Mudanças 22/08/11 - 16:20

 

-> Rashid agora compra mais equipamentos.

-> No Pvp Tool nos trainers.

-> Premmium tem acesso a todos os outfits

Cara se puder dar uma olhada na questão das mounts, tem algumas que nao estão pegando...exemplo crystal wolf, tamed panda, war draptor...

aguinho600A
23 de agosto de 2011 às 13:58

Aqui o link do tuto ensinando arrumar montarias...

 

Adicionando montarias

aguinho600A
23 de agosto de 2011 às 13:58

Desculpem o Duplo post foi sem querer *-*

Editado Agosto 23 por aguinho600

VmspkV
23 de agosto de 2011 às 15:32

@DarkVelocity

 

Use o Tortoise SVN para importar as sources. Acho que tem tutoriais aqui no xtibia.

 

@luccasspfc

 

Mounts concertadas. Para quem não quiser baixar o ot novamente, vá em data/XML/mounts.xml

 

<?xml version="1.0" encoding="UTF-8"?>
<mounts>
       <mount id="1" clientId="368" name="Widow Queen" speed="20" premium="yes" />
       <mount id="2" clientId="369" name="Racing Bird" speed="20" premium="yes" />
       <mount id="3" clientId="370" name="War Bear" speed="20" premium="yes" />
       <mount id="4" clientId="371" name="Black Sheep" speed="20" premium="yes" />
       <mount id="5" clientId="372" name="Midnight Panther" speed="20" premium="yes" />
       <mount id="6" clientId="373" name="Draptor" speed="20" premium="yes" />
       <mount id="7" clientId="374" name="Titanica" speed="20" premium="yes" />
       <mount id="8" clientId="375" name="Tin Lizzard" speed="20" premium="yes" />
       <mount id="9" clientId="376" name="Blazebringer" speed="20" premium="yes" />
       <mount id="10" clientId="377" name="Rapid Boar" speed="20" premium="yes" />
       <mount id="11" clientId="378" name="Stampor" speed="20" premium="yes" />
       <mount id="12" clientId="379" name="Undead Cavebear" speed="20" premium="yes" />
<mount id="13" clientid="387" name="Mule" speed="20" premium="yes" />
<mount id="14" clientid="388" name="Tiger Slug" speed="20" premium="yes" />
<mount id="15" clientid="389" name="Uniwheel" speed="20" premium="yes" />
<mount id="16" clientid="390" name="Crystal Wolf" speed="20" premium="yes" />
<mount id="17" clientid="426" name="War Horse" speed="20" premium="yes" />
<mount id="18" clientid="401" name="Kingly Deer" speed="20" premium="yes" />
<mount id="19" clientid="402" name="Tamed Panda" speed="20" premium="yes" />
<mount id="20" clientid="405" name="Dromedary" speed="20" premium="yes" />
<mount id="21" clientid="406" name="Sandstone Scorpion" speed="20" premium="yes" />
<mount id="22" clientid="421" name="Rented Horse" speed="20" premium="no" />
       <mount id="23" clientid="392" name="Fire War Horse" speed="20" premium="yes" />
<mount id="24" clientid="427" name="War Draptor" speed="20" premium="yes" />
<mount id="25" clientid="437" name="Rented Horse" speed="20" premium="no" />
<mount id="26" clientid="438" name="Rented Horse" speed="20" premium="no" />
<mount id="27" clientid="341" name="Gnarlhound" speed="20" premium="yes" />
<mount id="28" clientid="219" name="Tarantula" speed="20" premium="yes" />
</mounts>

 

E em data/npc/scripts/buymount.lua

 

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 

function AddMount(cid, message, keywords, parameters, node)  --by vodka
   if(not npcHandler:isFocused(cid)) then  
       return false  
   end
       if parameters.premium == true and not isPremium(cid) then
       return true,npcHandler:say('Sorry,Only premium members buy this mount!', cid)
       elseif not doPlayerRemoveMoney(cid, parameters.price) then
       return true,npcHandler:say('Sorry You need '..parameters.price..' gps to buy this mount!', cid)
       end  
          doPlayerAddMount(cid, parameters.mount)
          npcHandler:say('Here is your mount!', cid)    
npcHandler:resetNpc()
return true
end

keywordHandler:addKeyword({'mounts'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell these mounts: {widow queen},{racing bird},{war Bear},{black sheep},{midnight panther},{common draptor},{titanica},{tin lizzard}.{blazebringer},{rapid boar},{stampor}, {undead cavebear}, {mule}, {tiger slug}, {uniwheel}, {crystal wolf}, {war horse}, {kingly deer}, {tamed pand}, {dromedary}, {sandstone scorpion}, {fire horse}, {war draptor}, {gnarlhound} or {tarantula}!'})
local node1 = keywordHandler:addKeyword({'widow queen'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount widow queen?'}) 
node1:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 1,premium = false}) 
node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node2 = keywordHandler:addKeyword({'racing bird'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount racing bird'}) 
node2:addChildKeyword({'yes'}, AddMount, {price = 20000,mount = 2,premium = true}) 
node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node3 = keywordHandler:addKeyword({'war bear'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount war Bear'}) 
node3:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 3,premium = false}) 
node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node4 = keywordHandler:addKeyword({'black sheep'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount black sheep?'}) 
node4:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 4,premium = false}) 
node4:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node5 = keywordHandler:addKeyword({'midnight panther'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount midnight panther?'}) 
node5:addChildKeyword({'yes'}, AddMount, {price = 20000,mount = 5,premium = true}) 
node5:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node6 = keywordHandler:addKeyword({'common draptor'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount common draptor?'}) 
node6:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 6,premium = true}) 
node6:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node7 = keywordHandler:addKeyword({'titanica'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount titanica?'}) 
node7:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 7,premium = true}) 
node7:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node8 = keywordHandler:addKeyword({'tin lizzard'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount tin lizzard?'}) 
node8:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 8,premium = true}) 
node8:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node9 = keywordHandler:addKeyword({'blazebringer'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount blazebringer?'}) 
node9:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 9,premium = true}) 
node9:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node10 = keywordHandler:addKeyword({'rapid boar'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount rapid boar?'}) 
node10:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 10,premium = false}) 
node10:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node11 = keywordHandler:addKeyword({'stampor'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount stampor?'}) 
node11:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 11,premium = true}) 
node11:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node12 = keywordHandler:addKeyword({'undead cavebear'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount undead cavebear?'}) 
node12:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 12,premium = true}) 
node12:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node13 = keywordHandler:addKeyword({'mule'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount mule?'}) 
node13:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 13,premium = true}) 
node13:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node14 = keywordHandler:addKeyword({'tiger slug'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount tiger slug?'}) 
node14:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 14,premium = true}) 
node14:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node15 = keywordHandler:addKeyword({'uniwheel'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount uniwheel?'}) 
node15:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 15,premium = true}) 
node15:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node16 = keywordHandler:addKeyword({'crystal wolf'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount crystal wolf?'}) 
node16:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 16,premium = true}) 
node16:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node17 = keywordHandler:addKeyword({'war horse'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount war horse?'}) 
node17:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 17,premium = true}) 
node17:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node18 = keywordHandler:addKeyword({'kingly deer'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount kingly deer?'}) 
node18:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 18,premium = true}) 
node18:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node19 = keywordHandler:addKeyword({'tamed panda'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount tamed panda?'}) 
node19:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 19,premium = true}) 
node19:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node20 = keywordHandler:addKeyword({'dromedary'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount dromedary?'}) 
node20:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 20,premium = true}) 
node20:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node21 = keywordHandler:addKeyword({'sandstone scorpion'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount sandstone scorpion?'}) 
node21:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 21,premium = true}) 
node21:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node22 = keywordHandler:addKeyword({'rented horse'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount rented horse?'}) 
node22:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 22,premium = true}) 
node22:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node23 = keywordHandler:addKeyword({'fire horse'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount fire war horse?'}) 
node23:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 23,premium = true}) 
node23:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node24 = keywordHandler:addKeyword({'war draptor'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount war draptor?'}) 
node24:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 24,premium = true}) 
node24:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node25 = keywordHandler:addKeyword({'rented horse'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount rented horse?'}) 
node25:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 25,premium = true}) 
node25:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node26 = keywordHandler:addKeyword({'rented Horse'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount rented Horse?'}) 
node26:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 26,premium = true}) 
node26:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node27 = keywordHandler:addKeyword({'gnarlhound'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount gnarlhound?'}) 
node27:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 27,premium = true}) 
node27:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
local node28 = keywordHandler:addKeyword({'tarantula'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'You want to buy the mount tarantula?'}) 
node28:addChildKeyword({'yes'}, AddMount, {price = 10000,mount = 28,premium = true}) 
node28:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Ok, then.', reset = true})
npcHandler:addModule(FocusModule:new())

 

@aguinho600

 

O problema era também no npc de mounts. Quando se falava "war draptor" o npc reconhecia como "draptor". Mudei alguns nomes de mounts nele para diferenciar. Obrigado pela ajuda =]

aguinho600A
23 de agosto de 2011 às 15:48

Nada' =D

paulo0102P
23 de agosto de 2011 às 18:16

Cara você pode postar o item editor que você adiciono os items para balanceamento ?

 

@topic

Bom o server pareçe ser legal, mais não curto tb as tps pra Hunt

mais fora isso tá de parabéns :wink_smile:

23 de agosto de 2011 às 22:05

Eu sei baixar sources com o Tortoise, mas ta dando erro para baixar essa. =s Vo ve se acho a soluçao poor ai, vlw!

VmspkV
23 de agosto de 2011 às 22:45

Mudanças 23/08/11 - 22:40

 

-> Corpse do Ghastly Dragon consertado.

-> Frag system, com Red e Black Skull, funcionando.

-> Pequena modificação na Draken Quest.

 

Recebi algumas chamadas via msn, mas para que eu possa consertar os erros eu preciso de feedback, me reportem o que vocês encontrarem.

 

@paulo0102

 

Não usei item editor, foi direto nos arquivos do ot.

 

@DarkVelocity

 

Opa! É que o distro não é de minha autoria, essas sources são as mesmas do link disponibilizado no tópico do Shynzo, que é um dos responsáveis pelo Crystal Server. O tópico está aqui mesmo nos Otservs 9.1.

ddjesusddD
24 de agosto de 2011 às 00:23

donde podo pegar IP Changer 9.1?

 

Obrigado por responder

24 de agosto de 2011 às 09:21

@Zakarum no topico tem para download... Da uma lida primeiro!

 

@Vmspk Ok, vou dar uma olhada ! ^^

Editado Agosto 24 por DarkVelocity

luccasspfcL
24 de agosto de 2011 às 12:19

Alguem ai sabe como mexer com o RME no windows 7? toda vez que vo salva trava tudo =/

dunga50000D
24 de agosto de 2011 às 12:26

O mapa parece ser bom pelas imagens

SpeakxS
24 de agosto de 2011 às 12:41

Muito bom, mais não gosto de teleports para hunts, mais como é 4fun até vai, acabei de baixa-lo agora, e estarei vendo os erros "bobos" e tals, Talvez eu edite ele, coloque mais coisas e etc...

fsgF
24 de agosto de 2011 às 12:43

#Vm...

Cara peço que coloque o Scan!

Você tem até 24horas para fazer isso, ou seu tópico será fechado.

luccasspfcL
24 de agosto de 2011 às 12:48

#Vm...

Cara peço que coloque o Scan!

Você tem até 24horas para fazer isso, ou seu tópico será fechado.

Scan? por acaso alguem é obrigado a baixar o conteudo? quem dúvida de alguma coisa faça o próprio scan...