ID:177972
 
I made a mob VAR so you cant equip to swords or 2 axes or anything like that but when a player try's to drop a weapon if they have a hand weapon equipped they cant drop another hand weapon same with body armor and so on...If you have any suggestions please help me out.

mob
var
Hand = 0

Equip()
if (src.equipped == 1)
usr << "You already have this equipped!"
if (usr.hand == 1)
usr << "You cant equip another item!"
else
src.name = "Axe \[Equipped]"
usr << "You equir the axe."
usr.strength += src.strength
src.equipped = 1
usr.hand = 1

Drop()
if(usr.hand == 1)
usr << "Not while its being worn."
if(usr.hand == 0)
src.loc=locate(usr.x,usr.y+1,usr.z)

<----Hendrix----->



Edit this to your needs -
            Get()
set category = "Actions"
set src in oview(2)
if(usr.items >= 20) usr << "You have 20 items. Please drop an item before picking this one up."
else
Move(usr)
usr << "You pickup [src]"
usr.items+=1
Drop()
set category = "Actions"
if(usr.equiped == 1) usr << "Please unequip your weapons first."
else
Move(usr.loc)
usr << "You Drop [src]"
usr.items-=1
Equip()
set category = "Actions"
if (src.loc != usr)
return
if (suffix == null)
var/Can_Equip = 1
if (usr.equiped == 1)
Can_Equip = 0
if (Can_Equip)
usr << "<font face=Courier><font color = purple>You wear Your \icon[src]<font color = blue> [src]."
usr.equiped = 1
usr.Str+=src.power
suffix = "(Wearing)"
else
usr << "<font face=Courier>Your already wearing somthing.."
else
suffix = null
usr.equiped = 0
usr.Str-=src.power
usr << "<font face=Courier><font color = purple>You Remove Your \icon[src]<font color = blue> [src]."


RaeKwon
In response to RaeKwon
lol thanks RaeKwon =)