Follow along with the video below to see how to install our site as a web app on your home screen.
Notka: This feature may not be available in some browsers.
-- Date: 2010-07-25
-- By Piaskillers
local outfit = {male = 128, female = 136} -- Id outfit?w male - facet, female - babka
local nazwa = Citizen -- nazwa outfitu (opcjonalnie)
local plec = getPlayerSex(cid)
function onUse(cid, item, frompos, item2, topos)
if plec == 0 then
doPlayerChangeOutfit(cid, outfit.female)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Gratulacje zmieniles outfit na " .. nazwa .. "a.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_BLUE)
else
doPlayerChangeOutfid(cid, outfit.male)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Gratulacje zmieniles outfit na " .. nazwa .. "a.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_BLUE)
return TRUE
end
-- Date: 2010-07-25
-- By Piaskillers
local outfit = {male = {id outfitu, id outfitu, id outfitu}, female = {id outfitu, id outfitu, id outfitu}} -- Id outfit?w male - facet, female - babka
local zmiana = {facet = math.random(cid,outfit.male), babka = math.random(cid,outfit.female)}
local plec = getPlayerSex(cid)
function onUse(cid, item, frompos, item2, topos)
if plec == 0 then
doPlayerChangeOutfit(cid, zmiana.babka)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Gratulacje zmieniles outfit!.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_BLUE)
else
doPlayerChangeOutfit(cid, zmiana.facet)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Gratulacje zmieniles outfit!.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_BLUE)
return TRUE
end
{male = {id outfitu, id outfitu, id outfitu}, female = {id outfitu, id outfitu, id outfitu}}
local outfit = {1, 2, 3}
local zmiana = math.random(cid,outfit)
function onUse(cid, item, frompos, item2, topos)
doPlayerChangeOutfit(cid, zmiana)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_BLUE)
return TRUE
end
local zmiana = math.random(1,3)Zale?y mi troche o optymalizacji i to z p?ci? jest zb?dne po mojej edycji wychodzi tak:
no i nie dzia?a
b??d :
![]()
local outfits = {5, 6, 7, 8, 9, 15, 18, 23, 24, 25, 29, 33, 37, 40, 48, 50, 53, 54, 57, 58, 59, 61, 62, 63, 64, 65, 66, 68, 69, 70, 71, 76, 78, 93, 96, 97, 98, 100, 126, 127, 193,
194, 195, 196, 203, 214, 215, 216, 229, 232, 235, 237, 246, 249, 253, 254, 255, 259, 260, 264, 281, 282, 287, 296, 297, 298, 300, 301}
local outfit =
{
lookType = 2,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0
}
local outfit0 =
{
lookType = 2,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0
}
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid,1921) == -1 or getPlayerStorageValue(cid,1921) == #outfits then
setPlayerStorageValue(cid,1921,1)
doSetCreatureOutfit(cid, outfit0, -1)
else
for i=1,#outfits do
if getPlayerStorageValue(cid,1921) == i then
outfit.lookType = outfits
doSetCreatureOutfit(cid, outfit, -1)
setPlayerStorageValue(cid,1921,i+1)
break
end
end
end
end