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

Change script for TFS 1.0

daiver

New Member
Joined
Oct 22, 2008
Messages
24
Reaction score
4
good, someone I can modify these scripts for use in TFS 1.0

the first is a quest system

Code:
local t = {
[9001] = {9001,"Demon Helmet",2493},
[9002] = {9002,"Phoenix shield",2539},
[20003] = {9003,"crystal coins",2160, 25},
[20004] = {9004,"stonecutter axe",2431},
[20005] = {9004,"lunar staff",7424},
[20006] = {9004,"magic sword",2400},
[20007] = {9004,"thunder hammer",2421},
[20008] = {9005,"knight axe",2430},
[20009] = {9006,"bright sword",2407},
[20010] = {9007,"skull staff",2436},
[20011] = {9008,"royal axe",7434},
[20012] = {9009,"justice seeker",7390},
[20013] = {9010,"blessed sceptre",7429},
[20014] = {9011,"crown legs",2488},
[20015] = {9012,"heroic axe",7389},
[20016] = {9013,"mystic blade",7384},
[20017] = {9014,"cranial basher",7415},
[20018] = {9015,"spirit cloak",8870},
[20019] = {9016,"blue legs",7730},
[20020] = {9017,"magma legs",7894},
[20021] = {9018,"magma monocle",7900},
[20022] = {9019,"magma coat",7899},
[20023] = {9020,"magma amulet",7890},
[20024] = {9021,"warrior helmet",2475},
[20025] = {9022,"terra legs",7885},
[20026] = {9023,"terra mantle",7884},
[20027] = {9024,"terra boots",7886},
[20028] = {9025,"magma boots",7891},
[20029] = {9026,"the avenger",6528},
[20030] = {9026,"arcane staff",2453},
[20031] = {9026,"glorious axe",7454},
[20032] = {9026,"spellbook of warding",8901},
[20033] = {9027,"pair of soft boots",2640},
[20034] = {9028,"Felicidasdes Has Obtenido un Nuevo Outfit",2160},
[20035] = {9029,"blue robe",2656},
[20036] = {9030,"crown helmet",2491},
[20037] = {9031,"crown armor",2487},
[20038] = {9032,"crown legs",2488},
[20039] = {9033,"Fiere Rainbow Shield",8906},
[20040] = {9034,"Terra Rainbow Shield",8909},
[20041] = {9035,"Magic Plate Armor",2474},
[20042] = {9036,"master stonkig amulet",12684},
[20043] = {9037,"ice raimbow shield",8907},
[20044] = {9038,"glacier kilt",7896},
[20045] = {9039,"glacier mask",7902},
[20046] = {9040,"blessed shield",2523},
[20047] = {9041,"energy rainbow shield",8908},
[20048] = {9042,"Felicidasdes Has Obtenido un Nuevo Outfit",2160},
[20049] = {9043,"fire sword",2392},
[20050] = {9044,"fire axe",2432},
[20051] = {9045,"furry club",7432},



}

function onUse(cid,item,fromPosition,itemEx,toPosition)
local v = t[item.uid]
      if getPlayerStorageValue(cid,v[1]) == -1 and getPlayerFreeCap(cid) >= (getItemWeightById(v[3])) then
         setPlayerStorageValue(cid,v[1],1)
               doPlayerAddItem(cid,v[3])
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Tu Obtienes " .. v[2] .. "!")
         elseif getPlayerStorageValue(cid,v[1]) == 1 then
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Ya esta Lista")
         elseif getPlayerFreeCap(cid) < (getItemWeightById(v[3])) then
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You need " .. getItemWeightById(v[3]) .. " capacity in order to get the item")
                 end
     return true
end

and the second is a creatureevent

Code:
function onLook(cid, thing, position, lookDistance)
local quests = {9001, 9002}
local completed = {
}
   if isPlayer(thing.uid) then
      for i = 1, #quests do
         if getPlayerStorageValue(thing.uid, quests[i]) > 0 then
            table.insert(completed, 1)
         end
      end
      doPlayerSetSpecialDescription(thing.uid, (getPlayerSex(thing.uid) == 0 and ".\nShe" or ".\nHe") .. " has completed ".. #completed .. "/" .. #quests .. " quests")
      doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getPlayerName(thing.uid) .. " has completed " .. #completed .. "/" .. #quests .. " quests.")
   end
return true
end

if I can help I would appreciate it very much
de antemano muchas gracias.
 
Back
Top