Hello. Doing some scripting in the school and dont have things to test it.
Im new to lua and this is my first time trying to make a script.
This script shold add the storage value to the player.
Was going to use this to make the outfits Vocation based.
So a a noob lua scripter like me want to know if my script works or not.
And all tips and hints how i shall improve my scripting and what i shold think of is welcomed :thumbup:
Here is the script
Im new to lua and this is my first time trying to make a script.
This script shold add the storage value to the player.
Was going to use this to make the outfits Vocation based.
So a a noob lua scripter like me want to know if my script works or not.
And all tips and hints how i shall improve my scripting and what i shold think of is welcomed :thumbup:
Here is the script
Code:
-- Zarbon made this script
-- Date :: 2010-11-18 :: 13.00
-- Location :: Sweden
--The storage ID's
StorMage = 1500;
StorDruid = 2600;
StorPaladin = 3700;
StorKnight = 4800;
--Check Vocation and set the storage!
if ( isSorcerer )
{
setPlayerStorageValue(cid, StorMage, 1)
}
elseif ( isDruid )
{
setPlayerStorageValue(cid, StorDruid, 1)
}
elseif ( isPaladin )
{
setPlayerStorageValue(cid, StorPaladin, 1)
}
elseif ( isKnight )
{
setPlayerStorageValue(cid, StorKnight, 1)
}