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

Hjälp med server?

Fairywintah

RoHaN-OTs - Support and Mapper.
Joined
Nov 5, 2009
Messages
1,516
Reaction score
13
Hej, jo jag har lite problem, jag vill att folk ska få typ dessa items i sin BP


Plate armor
Steel helmet
plate legs
leather boots
spear
spike sword
wand of wortex
snakebite rod
20 cc
aol
och en backpack

kan nån fixa en Firstitems? eller kan nån hjälpa mig via teamviewer?.
 
Gjort, försökt i Support, men dom sa bara vart jag kunde edita, men eftersom jag inte är så bra, så vill jag gärna att nån visar lite snabbt bara :). så om nån kan så vore det super shysst :)
 
Gjort, försökt i Support, men dom sa bara vart jag kunde edita, men eftersom jag inte är så bra, så vill jag gärna att nån visar lite snabbt bara :). så om nån kan så vore det super shysst :)

Bara att ändra IDs i stort sett, Sizaro har ett ganska schysst first item script du kan Edita.
 
Vet inte, vill bara få klart det, sen kan jag sätta igång mitt OT :/
 
local commonItems = {
-- ITEMS ALL VOCS RECEIVE
{itemid=2120, count=1}, -- rope
{itemid=5710, count=1}, -- shovel
{itemid=2789, count=10}, -- brown mushrooms
{itemid=2160, count=1}, -- crystal coin
}

local firstItems = {
{ -- SORC ITEMS
{itemid=2457, count=1}, -- steel helmet
{itemid=2463, count=1}, -- plate armor
{itemid=2647, count=1}, -- plate legs
{itemid=2643, count=1}, -- leather boots
{itemid=2525, count=1}, -- dwarven shield
{itemid=2190, count=1}, -- wand of vortex

{itemid=2268, count=1}, -- sd
{itemid=2273, count=1}, -- uh
{itemid=7620, count=1}, -- mp
},
{ -- DRUID ITEMS
{itemid=2457, count=1}, -- steel helmet
{itemid=2463, count=1}, -- plate armor
{itemid=2647, count=1}, -- plate legs
{itemid=2643, count=1}, -- leather boots
{itemid=2525, count=1}, -- dwarven shield
{itemid=2182, count=1}, -- snakebite rod

{itemid=2268, count=1}, -- sd
{itemid=2273, count=1}, -- uh
{itemid=7620, count=1}, -- mp
},
{ -- PALADIN ITEMS
{itemid=2457, count=1}, -- steel helmet
{itemid=2463, count=1}, -- plate armor
{itemid=2647, count=1}, -- plate legs
{itemid=2643, count=1}, -- leather boots
{itemid=2525, count=1}, -- dwarven shield
{itemid=2456, count=1}, -- bow
{itemid=2544, count=1}, -- arrow

{itemid=2268, count=1}, -- sd
{itemid=2273, count=1}, -- uh
{itemid=7620, count=1}, -- mp
},
{ -- KNIGHT ITEMS
{itemid=2457, count=1}, -- steel helmet
{itemid=2463, count=1}, -- plate armor
{itemid=2647, count=1}, -- plate legs
{itemid=2643, count=1}, -- leather boots
{itemid=2525, count=1}, -- dwarven shield
{itemid=8602, count=1}, -- jagged sword

{itemid=7620, count=1}, -- mp
{itemid=7618, count=1}, -- hp
}
}

for _, items in ipairs(firstItems) do
for _, item in ipairs(commonItems) do
table.insert(items, item)
end
end

function onLogin(cid)
if getPlayerGroupId(cid) < 2 then
local hasReceivedFirstItems = getPlayerStorageValue(cid, 67708)

if hasReceivedFirstItems ~= 1 then
--[[local backpack = ]]doPlayerAddItem(cid, 1988, 1)

local giveItems = firstItems[getPlayerVocation(cid)]

if giveItems ~= nil then
for _, v in ipairs(giveItems) do
--doAddContainerItem(backpack, v.itemid, v.count or 1)
doPlayerAddItem(cid, v.itemid, v.count or 1)
end

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have recieved your first items!")
end
setPlayerStorageValue(cid, 67708, 1)
end
end
return TRUE
end
 
Back
Top