Quote:
Originally Posted by .HC'Destrox
I can give you an simple example quest:
Code:
quest example_quest begin
state start begin
when 11001.chat."Test" begin
say("Which item slot you want to change (1-90)?")
local slot_idx = tonumber(input())
if item.select_cell(slot_idx-1) then
say("Which attribute index you want to change (1-7)?")
local attr_index = tonumber(input())
if attr_index >= 1 and attr_index <= 7 then
say("Which attribute type you want to set?")
local attr_type = tonumber(input())
say("Which attribute value you want to set?")
local attr_value = tonumber(input())
item.set_value(attr_index-1, attr_type, attr_value)
say("The attributes changed.")
else
say("Wrong attribute index: "..attr_index)
end
else
say("Could not select slot by index "..slot_idx.."!")
end
end
end
end
Kind Regards
|
very well thanks for labor
but my thought is some different maybe
so I thought to example we can do make boni of item with php scripts its right? yes and that item come to in invertory or player store.i want do it with quests

i think its must be posibble with quest or mysql extension quests?