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

Refil NPC!

Snow

New Member
Joined
Jan 16, 2008
Messages
381
Reaction score
0
I'd like to know if it's possible to make a NPC that refils potions for people that use key rings...
Example:

player has 100 empty vials(big ones)
he talks to the npc

player: refil 100 gmp
NPC would you like to refil 100 gmp for xxxx gold?
player: yes
All his gmp flasks would transform into gmps and the money would be removed.

If it's possible can someone do it please?
 
yes, but what it would do is the same thing as buying them normaly from an npc he would remove all the flasks and give you new one's so they wont be organised in backpacks they would just make your backpack messy.

so its just easy enough to sell flasks and rebuy them
 
Unless you somehow use
Code:
doTransformItem(uid, newId[, count/subType])

Edit:
On second thought you could also make it so you can buy manapots inside of keyrings from the npc, make it cost 1 keyring... sumthin like this maybe:

Code:
if doPlayerRemoveItem(cid, 5801, 1) == true then
    container = doPlayerAddItem(cid, 5801, 1)
    doAddContainerItem(container, potid, 1)
end

That script would add a keyring with 1 pot in it, to completely fill it with pots u can just loop the doAddContainerItem part
 
Last edited:
Unless you somehow use
Code:
doTransformItem(uid, newId[, count/subType])

Edit:
On second thought you could also make it so you can buy manapots inside of keyrings from the npc, make it cost 1 keyring... sumthin like this maybe:

Code:
if doPlayerRemoveItem(cid, 5801, 1) == true then
    container = doPlayerAddItem(cid, 5801, 1)
    doAddContainerItem(container, potid, 1)
end

That script would add a keyring with 1 pot in it, to completely fill it with pots u can just loop the doAddContainerItem part

can you make the npc for me, I really suck at making them :(
 
Back
Top