LucasFerraz
Systems Analyst
Hello,
today I had an Idea, I don't know how to do it alone so I'm requesting this script:
- Only guild leaders can use
- Guild leaders will be able to use only if globalstorage == 1230
- When guild leader use this command all guild members will receive the storage.
Members of Guild 1 will receive storage 1000.
Members of Guild 2 will receive storage 2000.
Members of Guild 3 will receive storage 3000.
[...]
PS.: Players who joined guild after leader used this will not receive storage.
EDIT:
Talkaction
When leader 'join' then online members (including leader) will receive storage (unique storage to his guild)
Teleport
each guild will get teleported to a diferent place
Creatureevents
I need a onLogIn script that when player login he will receive unique storage of his guild (Only if his leader has joined)
today I had an Idea, I don't know how to do it alone so I'm requesting this script:
- Only guild leaders can use
- Guild leaders will be able to use only if globalstorage == 1230
- When guild leader use this command all guild members will receive the storage.
Members of Guild 1 will receive storage 1000.
Members of Guild 2 will receive storage 2000.
Members of Guild 3 will receive storage 3000.
[...]
PS.: Players who joined guild after leader used this will not receive storage.
EDIT:
Talkaction
When leader 'join' then online members (including leader) will receive storage (unique storage to his guild)
LUA:
function onSay(cid, words, param, channel)
local guild = getPlayerGuildId(cid)
if(not guild or getPlayerGuildLevel(cid) < GUILDLEVEL_LEADER or getStorage(1230) == -1) then
doPlayerSendChannelMessage(cid, "", "You can\'t join. Possible reasons:\n1. You aren\'t leader of guild.\n2. This event didn\'t started yet.", TALKTYPE_CHANNEL_W, 0)
return true
end
for _, player in ipairs(getPlayersOnline())
if getPlayerGuildId(player) == guild then
setPlayerStorageValue(player, 1000*guild, 1)
end
end
end
Teleport
each guild will get teleported to a diferent place
LUA:
local tps = {
{x=1, y=2, z=7},
{x=1, y=2, z=7},
{x=1, y=2, z=7}}
function onStepIn(cid, item, position, fromPosition)
if getPlayerGuildId(cid) then
doTeleportThing(cid, tps[getPlayerGuildId(cid)])
end
end
Creatureevents
I need a onLogIn script that when player login he will receive unique storage of his guild (Only if his leader has joined)
Last edited: