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

Events not teleporting players.

Is there any point in even having these lines in there? I haven't seen why they are useful:
Code:
doCreatureSetStorage(cid, configRunEvent.storages.group, getPlayerGroupId(cid))
doPlayerSetGroupId(cid, math.max(1, getCreatureStorage(cid, configRunEvent.storages.group)))

I only did a quick scan but I didn't find any place where configRunEvent.storages.group was even used.
Only the value of it was changed on a few lines.
 
Is there any point in even having these lines in there? I haven't seen why they are useful:
Code:
doCreatureSetStorage(cid, configRunEvent.storages.group, getPlayerGroupId(cid))
doPlayerSetGroupId(cid, math.max(1, getCreatureStorage(cid, configRunEvent.storages.group)))

I only did a quick scan but I didn't find any place where configRunEvent.storages.group was even used.
Only the value of it was changed on a few lines.

Looks like the script is doing some dodgey things:
Code:
doPlayerSetGroupId(pid, getCreatureStorage(pid, configRunEvent.storages.group))

Code:
configRunEvent = {
                storages = {
                    player = '632342', -- set free storage
                    joining = '986541', -- set free storage
                    group = '6764223', -- set free storage
                    exhaust = '2224442', -- set free storage
                    countEvent = '1116667' -- set free storage
                },
 
Last edited:
Is there any point in even having these lines in there? I haven't seen why they are useful:
Code:
doCreatureSetStorage(cid, configRunEvent.storages.group, getPlayerGroupId(cid))
doPlayerSetGroupId(cid, math.max(1, getCreatureStorage(cid, configRunEvent.storages.group)))

I only did a quick scan but I didn't find any place where configRunEvent.storages.group was even used.
Only the value of it was changed on a few lines.

So Sshould I change it or remove it? :p
 
Looks like the script is doing some dodgey things:
Code:
doPlayerSetGroupId(pid, getCreatureStorage(pid, configRunEvent.storages.group))

Code:
configRunEvent = {
                storages = {
                    player = '632342', -- set free storage
                    joining = '986541', -- set free storage
                    group = '6764223', -- set free storage
                    exhaust = '2224442', -- set free storage
                    countEvent = '1116667' -- set free storage
                },

Dodgey things? My storageIds? :p That other line maybe I should change to something else?
 
Try changing it to 1 in the config, maybe that'll solve it:

Code:
configRunEvent = {
                storages = {
                    player = '632342', -- set free storage
                    joining = '986541', -- set free storage
                    group = '1', -- set free storage
                    exhaust = '2224442', -- set free storage
                    countEvent = '1116667' -- set free storage
                },
 
Try changing it to 1 in the config, maybe that'll solve it:

Code:
configRunEvent = {
                storages = {
                    player = '632342', -- set free storage
                    joining = '986541', -- set free storage
                    group = '1', -- set free storage
                    exhaust = '2224442', -- set free storage
                    countEvent = '1116667' -- set free storage
                },

The storage key itself does not matter, its grabbing the value of that key:

getCreatureStorage(pid, configRunEvent.storages.group)

so using 1 as an example:

getCreatureStorage(pid, 1)
The storage key being queried and the data being returned:

1H8V22Q.png

I don't have the love to go through 267 lines of code, but I'm just pointing out that this script from first glance looks dodge-o.
 
The storage key itself does not matter, its grabbing the value of that key:

getCreatureStorage(pid, configRunEvent.storages.group)

so using 1 as an example:

getCreatureStorage(pid, 1)
The storage key being queried and the data being returned:

1H8V22Q.png

I don't have the love to go through 267 lines of code, but I'm just pointing out that this script from first glance looks dodge-o.

Hehe I understand that, but do you have any code in mind instead of getCreatureStorage(pid, configRunEvent.storages.group)? You seem to know some of this stuff!
 
Back
Top