function drop_item(value,quantita,percentuale)
x = 100/percentuale
drop_percentuale = math.floor(x)
drop_random = number(1, drop_percentuale)
if drop_random == 1 then
game.drop_item_with_ownership(value,quantita)
end
end
pui in quest_functions
drop_item
Si dropul va iesi asa:
quest Drop begin
state start begin
when 101.kill begin
drop_item(79505,1,100) --( item, cantitate, %)
end
end
end
ionel987 scrie:daca te intereseaza eu am pus droppul prin quest:
am pus asta in questlib.lua
function drop_item(value,quantita,percentuale)
x = 100/percentuale
drop_percentuale = math.floor(x)
drop_random = number(1, drop_percentuale)
if drop_random == 1 then
game.drop_item_with_ownership(value,quantita)
end
end
pui in quest_functions
drop_item
Si dropul va iesi asa:
quest Drop begin
state start begin
when 101.kill begin
drop_item(79505,1,100) --( item, cantitate, %)
end
end
end
Din păcate la mine nu funcţionează....
NE ÎNTOARCEM ÎN 2009! SERVER PVM HARD - OLD SCHOOL - LEVEL MAXIM 99 SAPHYRE MMO