ID:138946
 
obj
sharingan
icon='Jutsu.dmi'
icon_state="Sharingan"
verb
Sharingan()
set category = "Jutsu"
switch(usr.sharingan)
if(1)
usr.sharingan=0
else
usr.sharingan=1
usr<<"Your sharingan has activited."
usr.Speed+=25
usr.Endurance+=25
usr.Intellect+=25
usr.movedelay-=0.7
usr.icon_state = ""
sleep(100)
usr<<"Your sharingan has deactivited."
usr.Speed-=25
usr.Endurance-=25
usr.Intellect-=25
usr.movedelay+=0.7


stat(contents)
src.contents+= new/obj/sharingan


Problem description:
The first problem is i wish to make it Doubleclick the skill for it to be use but i have to right click then select sharingan. The second problem is in my contents the skill constant add on, I just wanted to add one.

#1:
obj/sharigan
DblClick()
//put your skill stuff here.


#2:
mob/Stat() // This updates every tick. (In other words, constantly) Not a good place to put "src.contents+= new/obj/sharingan" under.
//But instead you put, stat(contents), under an obj type..
//TRY THIS:
mob/Stat()
statpanel("Items")
stat(src.contents) // Displays the players contents


And as for your <code>src.contents+= new/obj/sharingan</code> you might want to find another place in your code to add this skill to the player. Maybe the </code>mob/Login()</code> so it doesn't add it every tick, which is the result your getting from putting it under a </code>stat()</code>

Hope this helped. Happy Programming.