versuche die Quest umzuschreiben aber irgendwie will es nicht egal wie ich es probiere...
PHP Code:
quest steineentf begin
state start begin
when 20006.take begin -- npc vnum
if pc.count_item(31708) < 1 then
say("Du Brauchst den BLA")
else
say_title(mob_name(20006))
say()
if not ((item.get_type() == 1 and item.get_sub_type() < 6) or (item.get_type() == 2 and item.get_sub_type() == 0)) then
say('Du kannst nur bei Rüstungen und Waffen gesteine entfernen')
return
end
local data,x = {{},{}},1
for i = 0,2 do
local c = item.get_socket(i)
if c > 2 and c ~= 28960 then
data[1][x],data[2][x]= i,item_name(c)
x = x + 1
end
end
if data[1][1]==nil then say('Es gibt kein Gestein der Entfernt werden soll') return end
table.insert(data[2],'Abbrechen')
say('Welchen Stein möchtest du entfernen?')
local s=select_table(data[2])
if s==table.getn(data[2]) then return end
say(data[2][s]..' Entfernen?')
if select('Ja','Nein')==2 then return end
say(data[2][s]..' Entfernt')
pc.give_item2(item.get_socket(data[1][s]),1)
item.set_socket(data[1][s],28960)
pc.remove_item(31708, 1)
end
end
end
Gruß
Chikudo