• 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!

Jak dodać nogrode item w tasku

Status
Not open for further replies.

ximmy

Member
Joined
Oct 31, 2009
Messages
374
Reaction score
6
Dodaje nagrode itema i npc przestaje odpowiadac

http://otland.net/f83/grizzly-adams-killing-name-quest-all-tasks-more-real-tibia-159150/

w tym tak ( data/lib/killinginthenameof.lua ) :

{type="exp",value{200}},
{type = "item", value = {2195, 1},
{type = "money", value = {200}}
}},


http://otland.net/f82/creatureevent-npc-killing-name-all-monsters-all-tasks-rewards-59700/
a w tym tak ( data/npc/scripts/killinginthenameof.lua ) :
[31] = {questStarted = 1540, questStorage = 65030, killsRequired = 45, raceName = "One colds", rewards = {{enable = true, type = "exp", values = 90000}, {enable = true, type = "item", values = {9776, 1}, {enable = true, type = "money", values = 50000}}}
 
W temacie jest podana konfiguracja, wystarczy sobie wszystko przetłumaczyć na powoli:
- [1] = Number of task.
- quesStarted = Storage to check if the task has been started.
- questStorage = Storage to check of player has killed the monter the needed times.
- killsRequired = How many times the player needs to kill the creature.
- raceName = Monster's race name.
- rewards = Here you can config how many rewards will botain the player in each task.
--[[
enable = Here you can enable/disable the reward, use true or false.
type = Here you declare the reward type.
--[[
boss or 1 = Player will be teleported to the boss position.
exp or 2 = Player will get experience.
item or 3 = Player will get an item.
money or 4 = Player will get money.
storage or 5 = Player will get a storage value.
points or 6 = Player will get points(storage value) for the rank.
]]--
values = Here you declare the values for the reward type.
--[[
Use a position for "boss", Ex: {x = 100, y = 100, z = 7}.
Use a number value for "exp", Ex: 1000.
Use a table value with two numbers for "item", the first value will be the item id and the second value will be the count, Ex: {2160, 10}.
Use a number value for "money", Ex: 1000.
Use a table value with two numbers for "storage", the first value will be the storage value and the second value will be the count, Ex: {10500, 1}.
Use a number value for "points", Ex: 5.[/B]
]]--
]]--
--Only in the creaturescript.
- creatureStorage = Storage to check the kills for each creature.
 
Alternatywnie możesz spróbować takiej wersji:
LUA:
{enable = true, type = 3, values = {2160, 100}
 
Też nie działa

Ma ktoś jakiś działający task system na 0.4 gdzie można dodać item jako nagrode ?
 
Last edited:
W opisie jest wszystko opisane. Wystarczy sobie wrzucić go do tłumacza.
Temat zamykam, bo poruszą taką błahostkę że aż ręce opadają.
 
Status
Not open for further replies.
Back
Top