Ascuas Funkeln
Rakkedo Game
- Joined
- Apr 14, 2013
- Messages
- 549
- Solutions
- 33
- Reaction score
- 309
- Location
- Poland
- GitHub
- AscuasFunkeln
[TSF 0.3.6 V8 edite by Cyko]
Hello
i want editing item information that show when u look on it. Forum there just return one answer "Learn C++".
But i made something like this.
Look on ScreenShot
But this is pretty lame script, why? Look
The problem is, getItemAttribute, getItemAttack etc. wont work, so i need to write all information by self, and this make me angry. Im still begginer, im starting. I make already alot stuff for my server but this problem made me cry, this is something like barrier that i cant solve cuz in next step i want color informationn by editing source, already is impossible if i must write all description in one row.
Did i should fk migrate do other distribution? Any ideas?
Hello
i want editing item information that show when u look on it. Forum there just return one answer "Learn C++".
But i made something like this.
Look on ScreenShot
But this is pretty lame script, why? Look
LUA:
local rarityList =
{
[2412] = ('\n Two-Handed Sword \n \n [Attack: 285] [Defense: 35] \n \n \n Wind Resistance +5% \n Fire Resistance -5% \n Movement Speed +20 \n Two-Handed Weapon +5'),
[2567] = ('Add 20 minutes to your 2X Experience Time.'),
[2566] = ('Add 40 minutes to your 2X Experience Time.'),
[2565] = ('Add 60 minutes to your 2X Experience Time.'),
}
function onLook(cid, thing, position, lookDistance, uid, item, id)
if (not isCreature(thing.uid)) then
local rarityItem = false
local itemId = thing.itemid
local itemName = getItemNameById(itemId)
if (rarityList[itemId]) then
rarityItem = rarityList[itemId]
elseif (rarityList[itemName]) then
rarityItem = rarityList[itemName]
end
if (rarityItem) then
local str = ""
str = str ..getItemNameById(itemId).. ("").."\n"..getItemDescriptionsById(itemId).description
str = str .."\n"
str = str .."".. rarityItem..""
doPlayerSendTextMessage(cid, 22, str)
return false
end
end
return true
end
The problem is, getItemAttribute, getItemAttack etc. wont work, so i need to write all information by self, and this make me angry. Im still begginer, im starting. I make already alot stuff for my server but this problem made me cry, this is something like barrier that i cant solve cuz in next step i want color informationn by editing source, already is impossible if i must write all description in one row.
Did i should fk migrate do other distribution? Any ideas?