Rugged Mage
Lua Scripter
- Joined
- Mar 8, 2010
- Messages
- 1,182
- Solutions
- 2
- Reaction score
- 74
I was bored so, I decided to make a script that people can use on there servers for players that like smoking weed
I know this script is pretty useless, but I thought I might as well post it incase people are looking for something like this.
if you want this script to remove skills just add this.
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 2803 then -- you can change this to the id you want to use.
doPlayerRemoveItem(cid, 2803,1) -- same here.
doCreatureAddHealth(cid, 200)
doSendMagicEffect(getPlayerPosition(cid), 31) -- sends the effect to the person.
doCreatureSay(cid, "-Cough-", 3) -- makes the player say something.
doPlayerSendTextMessage(cid, 22, "You have been affected from smoking weed!")
doChangeSpeed(cid, -100) -- changes the speed until they logout.
end
return true
end
if you want this script to remove skills just add this.
Lua:
doPlayerAddSkillTry(cid, skillid, 1)
Lua:
Skillid can be:
SKILL_FIST (0) = Fist Fighting
SKILL_CLUB (1) = Club Fighting
SKILL_SWORD (2) = Sword Fighting
SKILL_AXE (3) = Axe Fighting
SKILL_DISTANCE (4) = Distance Fighting
SKILL_SHIELD (5) = Shielding
SKILL_FISHING (6) = Fishing
Last edited: