Despues de insistirle al mk de Rauser:
Sistema de bloqueo para no tirar,comerciar ni mover items del inventario,solo podra desbloquearlo el jugador que sepa el password etc
Debes iniciar sesión para ver el contenido del enlace en esta publicación.
Bueno Buscando de foro en foro Encontré estas Armas Y ME GUSTARÍA COMPARTIRLAS CON USTEDES
Fuente: Debes iniciar sesión para ver el contenido del enlace en esta publicación.
Descarga: Debes iniciar sesión para ver el contenido del enlace en esta publicación.
hola, hice esta func rapidamente en lua con las funciones q dice shang, puedes probarla
--[[
Author: PACI
Description: Creates an item with selected item attributes and sockets.
Returns two args: boolean, int
Syntax:
Example 1 - Without item count (default 1):
local item_created, errorType = create_item(19)
if item_created then
syschat("Item given to the player succesfully")
else
syschat("Something wrong happend, errorType is: "..errorType)
end
>> Gives the player an item with the vnum 19.
Example 2 - Without attributes nor sockets:
local item_created, errorType = create_item(19, 1)
if item_created then
syschat("Item given to the player succesfully")
else
syschat("Something wrong happend, errorType is: "..errorType)
end
>> Gives the player 1x the item 19
Example 3 - Only Attributes:
local itemAttributes = {
{1, 2000}, -- 2.000 MÁX HP
{17, 15}, -- 15 Half-Humans
-- {attrType, attrValue},
}
local item_created, errorType = create_item(19, 1, itemAttributes)
if item_created then
syschat("Item given to the player succesfully")
else
syschat("Something wrong happend, errorType is: "..errorType)
end
Example 4 - Attributes and Sockets:
local itemAttributes = {
{1, 2000}, -- 2.000 MÁX HP
{17, 15}, -- 15 Half-Humans
-- {attrType, attrValue},
}
local itemSockets = {28301, 28317, 28302}
local item_created, errorType = create_item(19, 1, itemAttributes, itemSockets)
if item_created then
syschat("Item given to the player succesfully")
else
syschat("Something wrong happend, errorType is: "..errorType)
end
Example 5 - Only Sockets:
local itemSockets = {28301, 28317, 28302}
local item_created, errorType = create_item(19, 1, {}, itemSockets)
if item_created then
syschat("Item given to the player succesfully")
else
syschat("Something wrong happend, errorType is: "..errorType)
end
]]
function create_item(itemVnum, itemCount, itemAttributes, itemSockets)
local function _error(str, ret)
if pc.is_gm() then
syschat("lua.create_item.error: "..str..": returned "..ret)
return false, ret
end
end
if not itemVnum or itemVnum == 0 then
return _error("not enough arg (itemVnum == 0)", -3)
elseif type(itemCount) ~= "number" then
return _error("itemCount must be a number", -2)
elseif not itemCount or itemCount == 0 then
itemCount = 1
end
itemAttributes = itemAttributes or {}
itemSockets = itemSockets or {}
pc.give_item2_select(itemVnum, itemCount)
if table.getn(itemAttributes) > 0 then
for i = 1, table.getn(itemAttributes) do
if table.getn(itemAttributes[i]) < 2 then
return _error("itemAttributes["..i.."] is not fully defined, need 2 arguments: {attrType, attrValue}", -1)
end
item.set_value(i-1, itemAttributes[i][1], itemAttributes[i][2])
end
end
if table.getn(itemSockets) > 0 then
for i = 1, table.getn(itemSockets) do
if not itemSockets[i] then
return _error("itemSockets are not fully defined", 0)
end
item.set_socket(i-1, itemSockets[i])
end
end
return true, 1
end
quest matarmob begin state start begin when login or levelup with pc.level >= 8 begin say("texto") end when 101.kill begin say("Se ha completado la misión!") say("recibiras un premio") pc.give_item2(19, 1) set_state("__complete") end end state __complete begin end end
No le puse la opcion de que aparesca el pergamino,ya que lo hice con pereza xd