• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Hero outfit

Hitsugaya

New Member
Joined
Mar 28, 2008
Messages
90
Reaction score
0
Location
Poland, Łódź, RTK
Witam. Mam skrypt na zmiane outfitu (cos jak elf i dwarf na APO) ale kiedy uzyje go na siebie to wywala mi blad w konsoli

Code:
[31/05/2009 16:30:21] Lua Script Error: [Action Interface] 
[31/05/2009 16:30:22] data/actions/scripts/other/addon.lua:onUse

[31/05/2009 16:30:22] luaDoPlayerAddOutfit(). Player not found

A skrypt wyglada tak

Code:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2309 then
local playerpos = getCreaturePosition(cid)
doRemoveItem(item.uid,2309)
doPlayerAddOutfit(cid, 73)
doSendMagicEffect(playerpos, 12)
doPlayerSendTextMessage(cid,22,"Otrzymales Outfit Hero !!")
end
end
 
Code:
 function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2309 then
local playerpos = getCreaturePosition(cid)
doRemoveItem(item.uid,2309)
doSetCreatureOutfit(cid, 73)
doSendMagicEffect(playerpos, 12)
doPlayerSendTextMessage(cid,22,"Otrzymales Outfit Hero !!")
end
end
? :d
 
ale kolega pragnol ze by graczowi dawac outfit nie zaminiac sie na hero czyli trzba cos takiego jak questy zrobic z outfit
 
Mozliwe, ze mozna skorzystac z tej funkcji:
Code:
doPlayerAddOutfit(cid,looktype,addons)
 
Last edited:
Code:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2309 then
local playerpos = getCreaturePosition(cid)
doRemoveItem(item.uid,2309)
[B]doPlayerAddOutfit(cid, 73)[/B]
doSendMagicEffect(playerpos, 12)
doPlayerSendTextMessage(cid,22,"Otrzymales Outfit Hero !!")
end
end

doPlayerAddOutfit(cid,looktype,addons)

w wygladzie hero nie ma addonu to co ja mam wpisac w addons ?? 0 ??

PS. chodzi mi o to zeby zmienil mi outfit na wyglad hero do czasu wylogowania. kiedy bym sie wylogowal to outfit popracal by do poprzedniego stanu. cos jak komenda /newtype u GODa
 
Specjalista :

Code:
[01/06/2009 11:46:17] Lua Script Error: [Action Interface] 
[01/06/2009 11:46:17] data/actions/scripts/other/addon.lua:onUse

[01/06/2009 11:46:17] attempt to index a number value
[01/06/2009 11:46:17] stack traceback:
[01/06/2009 11:46:17] 	[C]: in function 'doSetCreatureOutfit'
[01/06/2009 11:46:17] 	data/actions/scripts/other/addon.lua:5: in function <data/actions/scripts/other/addon.lua:1>

To mi wyskakuje jak wkleilem skrypt scorpiona
 
Najlepiej do outfits.xml dodaj herou outfit + quest="tutaj storage" i pozniej niech daje storage jakis itemek i wuala masz hero outfit.
 
Najlepszym rozwiązaniem wg. mnie będzie stworzenie w phpmyadmin w group_id grupy która miała by wszystko to co normalny player z dodatkiem outfitu hero.
Potem wystarczy zrobić prosty skrypt w talkactions na dawanie gracza tej grupy
Pozdro :)
 
Najlepszym rozwiązaniem wg. mnie będzie stworzenie w phpmyadmin w group_id grupy która miała by wszystko to co normalny player z dodatkiem outfitu hero.
Potem wystarczy zrobić prosty skrypt w talkactions na dawanie gracza tej grupy
Pozdro :)

a co jak urzywa 0.3.4? :O
bo tam chyba niema groups w bazie :(

fail ^^
 
Ajj, gadacie glupoty.

doSetCreatureOutfit(cid, outfit, time)

lub

doCreatureChangeOutfit(cid, outfit)

Uzyj ktorego wolisz i ktory bardziej ci pasuje :)
 
Back
Top