• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Use dragon claw!

bybbzan

mapper
Joined
Aug 4, 2012
Messages
809
Solutions
2
Reaction score
136
Location
Sweden
Hello otlanders!

I have an idea that i want to be published and scripted :)
I hope ill be the first who come with this idea..xD

Anyway..

Is it possible to make 'right click' on addon items for example Dragon claw
and a pop-up box will show like "Do you want to get this addon?" and then click yes/no or cancel idk.
I think i've seen blessings script with pop-up~.

I hope someone can make this for me :)
Thanks in advance.
 
The script itself is easy, but I think there's no way to send a Pop-up box with yes/no buttons (at least on 8.6~)
 
What if you get some line from Books?

Yea thats not a bad idea, too bad i can't script anything since i got no knowledge. xD

It could be something with this line:
Code:
	doShowTextDialog(cid, item.itemid, text)

Okay , that TextDialog doesnt matter, what matters is that you have to confirm that you want to use the item.
 
Last edited:
well i did edit some existing scripts all credits goes too the person who made it

Actions
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if (getPlayerStorageValue(cid, 0) == EMPTY_STORAGE) then
		doCreatureSay(cid, "If you like too use the dragonclaw to get your addon write down !addon dragonclaw.", TALKTYPE_ORANGE_1)
	else
		doPlayerSendTextMessage(cid,22,"You have already have this addon.")
	end
	return true
end

LUA:
<action itemid="10020" event="script" value="Dragonclaw.lua"/>

4sgu9y.png


now the talkaction
LUA:
function onSay(cid, words, param)
    local femaleOutfits = { ["dragonclaw"]={288} }
    local maleOutfits = { ["dragonclaw"]={289} }
    local msg = {"Command requires GOOD param!", "You dont have an dragonclaw!", "Bad param!", "You gained the demonhunter addon!"}
    local param = string.lower(param) 
 
    if(getPlayerItemCount(cid, 10020) > 0) then
        if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then
            doPlayerRemoveItem(cid, 10020, 1)
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4])
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
            if(getPlayerSex(cid) == 0)then
              doPlayerAddOutfit(cid, femaleOutfits[param][1], 3)
            else
              doPlayerAddOutfit(cid, maleOutfits[param][1], 3)
            end
        else
          doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])
        end
    else
      doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])
    end
end

LUA:
<talkaction words="!addon" event="script" value="dragonclawforaddon.lua" />

as i said before credits too the maker of the scripts
maybe a little credit for me haha hope its good enough for ya
ps im no scripter :p
 
well i did edit some existing scripts all credits goes too the person who made it

Actions
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if (getPlayerStorageValue(cid, 0) == EMPTY_STORAGE) then
		doCreatureSay(cid, "If you like too use the dragonclaw to get your addon write down !addon dragonclaw.", TALKTYPE_ORANGE_1)
	else
		doPlayerSendTextMessage(cid,22,"You have already have this addon.")
	end
	return true
end

LUA:
<action itemid="10020" event="script" value="Dragonclaw.lua"/>

4sgu9y.png


now the talkaction
LUA:
function onSay(cid, words, param)
    local femaleOutfits = { ["dragonclaw"]={288} }
    local maleOutfits = { ["dragonclaw"]={289} }
    local msg = {"Command requires GOOD param!", "You dont have an dragonclaw!", "Bad param!", "You gained the demonhunter addon!"}
    local param = string.lower(param) 
 
    if(getPlayerItemCount(cid, 10020) > 0) then
        if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then
            doPlayerRemoveItem(cid, 10020, 1)
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4])
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
            if(getPlayerSex(cid) == 0)then
              doPlayerAddOutfit(cid, femaleOutfits[param][1], 3)
            else
              doPlayerAddOutfit(cid, maleOutfits[param][1], 3)
            end
        else
          doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])
        end
    else
      doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])
    end
end

LUA:
<talkaction words="!addon" event="script" value="dragonclawforaddon.lua" />

as i said before credits too the maker of the scripts
maybe a little credit for me haha hope its good enough for ya
ps im no scripter :p

Thank you. This is just fine! :)
Rep for you and thanks to the main author.
 
Back
Top