Elvang
Member
I've been looking around for a while and I can't seem to find a script or anything that writes the name of the person on the trophy, does anyone know where I can find it.
--Arena Trophies made by Evil Hero--
function onStepIn(cid, item, frompos, item2, topos)
-- Bronze Trophy
local bronze = x --Itemid of the bronze trophy
local positionb = {x=XXX, y=YYY, z=ZZZ} -- the coordinates where the bronze trophy should be created
local itemidb = doCreateItem(bronze,1,positionb)
local descriptionb = "This Trophy belongs to ".. getCreatureName(cid) .." for killing all monsters at Greenhorn Arena!"
--/Bronze Trophy
--Silver Trophy
local silver = x --Itemid of the silver trophy
local positions = {x=XXX, y=YYY, z=ZZZ} -- the coordinates where the silver trophy should be created
local itemids = doCreateItem(silver,1,positions)
local descriptions = "This Trophy belongs to ".. getCreatureName(cid) .." for killing all monsters at Scrapper Arena!"
--/Silver Trophy
--Golden Trophy
local gold = x --Itemid of the golden trophy
local positiong = {x=XXX, y=YYY, z=ZZZ} -- the coordinates where the golden trophy should be created
local itemidg = doCreateItem(golden,1,positiong)
local descriptiong = "This Trophy belongs to ".. getCreatureName(cid) .." for killing all monsters at Warlord Arena!"
--/Golden Trophy
if item.actionid == 7777 and getPlayerStorageValue(cid,7777) == -1 then
doSetItemSpecialDescription(itemidb,descriptionb)
setPlayerStorageValue(cid,7777,1)
elseif item.actionid == 7778 and getPlayerStorageValue(cid,7778) == -1 then
doSetItemSpecialDescription(itemids,descriptions)
setPlayerStorageValue(cid,7778,1)
elseif item.actionid == 7779 and getPlayerStorageValue(cid,7779) == -1 then
doSetItemSpecialDescription(itemidg,descriptiong)
setPlayerStorageValue(cid,7779,1)
else
doPlayerSendCancel(cid, "You have already taken your trophy.")
end
end
--Arena Trophies made by Evil Hero--
function onStepIn(cid, item, frompos, item2, topos)
-->>>>>>>>>>>>>>> Bronze Trophy <<<<<<<<<<<<<<<<<<<<<<<--
local bronze = x --Itemid of the bronze trophy
local positionb = {x=XXX, y=YYY, z=ZZZ} -- the coordinates where the bronze trophy should be created
local itemidb = doCreateItem(bronze,1,positionb)
local descriptionb = "This Trophy belongs to ".. getCreatureName(cid) .." for killing all monsters at Greenhorn Arena!"
-->>>>>>>>>>>>>>> /Bronze Trophy <<<<<<<<<<<<<<<<<<<<<<<--
-->>>>>>>>>>>>>>> Silver Trophy <<<<<<<<<<<<<<<<<<<<<<<--
local silver = x --Itemid of the silver trophy
local positions = {x=XXX, y=YYY, z=ZZZ} -- the coordinates where the silver trophy should be created
local itemids = doCreateItem(silver,1,positions)
local descriptions = "This Trophy belongs to ".. getCreatureName(cid) .." for killing all monsters at Scrapper Arena!"
-->>>>>>>>>>>>>>> /Silver Trophy <<<<<<<<<<<<<<<<<<<<<<<--
-->>>>>>>>>>>>>>> Golden Trophy <<<<<<<<<<<<<<<<<<<<<<<--
local golden = x --Itemid of the golden trophy
local positiong = {x=XXX, y=YYY, z=ZZZ} -- the coordinates where the golden trophy should be created
local itemidg = doCreateItem(golden,1,positiong)
local descriptiong = "This Trophy belongs to ".. getCreatureName(cid) .." for killing all monsters at Warlord Arena!"
-->>>>>>>>>>>>>>> /Golden Trophy <<<<<<<<<<<<<<<<<<<<<<<--
if item.actionid == 7777 and getPlayerStorageValue(cid,7777) == -1 then
doSetItemSpecialDescription(itemidb,descriptionb)
setPlayerStorageValue(cid,7777,1)
elseif item.actionid == 7778 and getPlayerStorageValue(cid,7778) == -1 then
doSetItemSpecialDescription(itemids,descriptions)
setPlayerStorageValue(cid,7778,1)
elseif item.actionid == 7779 and getPlayerStorageValue(cid,7779) == -1 then
doSetItemSpecialDescription(itemidg,descriptiong)
setPlayerStorageValue(cid,7779,1)
else
doPlayerSendCancel(cid, "You already obtained your Trophy.")
end
end
You don't see errors? You gotta be kidding me! Comments are -- not >>
I don't really get what you mean....Why do they create items?
look I've did it like that normally it should work that way
doSetItemSpecialDescription(itemidb,descriptionb)
local itemidb = doCreateItem(bronze,1,positiong)
bronze = x the itemid of the bronze trophy
it's like this if you see it without the shortenings
doSetItemSpecialDescription(doCreateItem(x,1,positionb),descriptionb)
got it now why i did it like this? if you know a better way then login to msn and tell it to me ^^
yours Evil Hero,
function onStepIn(cid, item, frompos, item2, topos)
if item.actionid == 7777 and getPlayerStorageValue(cid,7777) == -1 then
local bronze = x --Itemid of the bronze trophy
local positionb = {x=XXX, y=YYY, z=ZZZ} -- the coordinates where the bronze trophy should be created
local itemidb = doCreateItem(bronze,1,positionb)
local descriptionb = "This Trophy belongs to ".. getCreatureName(cid) .." for killing all monsters at Greenhorn Arena!"
doSetItemSpecialDescription(itemidb,descriptionb)
setPlayerStorageValue(cid,7777,1)
elseif item.actionid == 7778 and getPlayerStorageValue(cid,7778) == -1 then
local silver = x --Itemid of the silver trophy
local positions = {x=XXX, y=YYY, z=ZZZ} -- the coordinates where the silver trophy should be created
local itemids = doCreateItem(silver,1,positions)
local descriptions = "This Trophy belongs to ".. getCreatureName(cid) .." for killing all monsters at Scrapper Arena!"
doSetItemSpecialDescription(itemids,descriptions)
setPlayerStorageValue(cid,7778,1)
elseif item.actionid == 7779 and getPlayerStorageValue(cid,7779) == -1 then
local golden = x --Itemid of the golden trophy
local positiong = {x=XXX, y=YYY, z=ZZZ} -- the coordinates where the golden trophy should be created
local itemidg = doCreateItem(golden,1,positiong)
local descriptiong = "This Trophy belongs to ".. getCreatureName(cid) .." for killing all monsters at Warlord Arena!"
doSetItemSpecialDescription(itemidg,descriptiong)
setPlayerStorageValue(cid,7779,1)
else
doPlayerSendCancel(cid, "You already obtained your Trophy.")
end
end