Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very glitched bug! Anihilator Quest #148

Closed
TheMegafuji opened this issue Feb 19, 2014 · 9 comments
Closed

Very glitched bug! Anihilator Quest #148

TheMegafuji opened this issue Feb 19, 2014 · 9 comments
Labels

Comments

@TheMegafuji
Copy link

After finishing anihilator, you earn xp for opening the chest, well thats one of the main problems, if you don't have capacity or space to open the chest you may open it as many times as you want and earn the xp the chest gives '-', so you can go from level 100 to 1000+, or whatever.
Second, in the same quest, you can MOVE the chests, and also the items that show above the chests, that means you can get the chest out of the anihilator room (by sending them to the teleport) or pushing them to lava.
Sounds glitchy? at least I learned about this on my server beta haha.

@TheMegafuji
Copy link
Author

I think the same might happen at the following quests:
behemoth quest
anihilator
banshee
dream challenge
since they all use action id to quests.lua (you need to use an unique ID to prevent the chest to be moveable or walkable)

@WibbenZ
Copy link
Contributor

WibbenZ commented Feb 19, 2014

Ill check it out tonight, but about the earning exp its supposed to do, is with all the quests, probbly to copy shadowcores.

@WibbenZ WibbenZ added the bug label Feb 19, 2014
@TheMegafuji
Copy link
Author

Okay firstly to fix the problem of receiving xp infinitly you may just grab these lines and place them on item receive:

    if(item.uid == 1296) then --behemoth quest
        if (getPlayerStorageValue(cid, 9244) < 1) then
            doPlayerAddExp(cid, 80000, true, true)
            setPlayerStorageValue(cid,9244, 1) 
        end
    end
    if(item.uid == 9170 and getPlayerStorageValue(cid, 9170) < 1) then --banshee
        doPlayerAddExp(cid, 20000, true, true)
    end
    if(item.uid == 9050 or item.uniqueid == 9051 or item.uniqueid == 9052 or item.uniqueid == 9053) then --dream challenge q
        if (getPlayerStorageValue(cid, 9050) < 1 or getPlayerStorageValue(cid, 9051) < 1 or getPlayerStorageValue(cid, 9052) < 1 or getPlayerStorageValue(cid, 9053) < 1) then
            doPlayerAddExp(cid, 20000, true, true)
        end
    end

place them below here:

        result = "You have found " .. result .. "."

But above:

        setPlayerStorageValue(cid, storage, 1)

To fix anihilator, firstly openup map editor, go to anihilator quest room, change the chests actionid to 0, and put uid from your choice iam choosing (27215, 27216, 27217, 27218), also delete the items inside the chests.
You may now create a file named annihilatorQuestRewards.lua inside action/scripts/annihilator quest:

local rewards = {
    [27215] = 2494,
    [27216] = 2400,
    [27217] = 2431,
    [27218] = 1990
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
    if(getPlayerStorageValue(cid, 2215) < 1) then
        doPlayerAddItem(cid, rewards[item.uid], 1)
        doPlayerAddExp(cid, 100000, true, true)
        setPlayerStorageValue(cid,2215, 1)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You've found " .. getItemName(rewards[item.uid]) .. ".") 
    else
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "The chest is empty.")
    end
    return true
end

And add these lines:

    <action uniqueid="27215" script="annihilator quest/annihilatorQuestRewards.lua"/>
    <action uniqueid="27216" script="annihilator quest/annihilatorQuestRewards.lua"/>
    <action uniqueid="27217" script="annihilator quest/annihilatorQuestRewards.lua"/>
    <action uniqueid="27218" script="annihilator quest/annihilatorQuestRewards.lua"/>

you can also use fromuid.

after:

    <!-- Annihilator Quest -->
    <action uniqueid="2216" script="annihilator quest/annihilatorQuestDoor.lua"/>
    <action uniqueid="2208" script="annihilator quest/annihilatorQuestLever.lua"/>

@WibbenZ
Copy link
Contributor

WibbenZ commented Feb 19, 2014

The map must be updated aswell, when and if someone does that ill update the scripts

@TheMegafuji
Copy link
Author

I did it here, how can I upload it to you?

@WibbenZ
Copy link
Contributor

WibbenZ commented Feb 19, 2014

Use the github client, did you make any other changes?
Also could you fix the other map bugs you can find them on the github page
with the tag enchantment.
Den 19 feb 2014 18:50 skrev "Guiaki" notifications@github.com:

I did it here, how can I upload it to you?

Reply to this email directly or view it on GitHub.

@TheMegafuji
Copy link
Author

I made other changes, gonna upload later #149, Btw can you tag me any map changes needed? I haven't found any.

@WibbenZ
Copy link
Contributor

WibbenZ commented Feb 19, 2014

@Royalot
Copy link
Collaborator

Royalot commented Apr 24, 2014

Tested and works now. So can be closed

@Royalot Royalot closed this as completed Apr 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants