ID:263875
 
mob/World_Map
Special
name = "{NPC}Special"
icon='Hidden Grass.dmi'
icon_state=""
npc = 1
verb
Talk()
set category = "NPC's"
set src in oview(2)
alert("How Did you Find me?")
sleep(10)
alert("Here's somthing for your troubles.")
sleep(5)
alert("These To attacks will allow you to Hide in the shadows(check Fighting tab).")
sleep(3)
alert("Come Back Here next time you log on for the verbs again!")
usr.verbs += /mob/special/verb/Invisibility
usr.verbs += /mob/special/verb/Untouchable


1st: Everything here is working Ok BUT, I want to make it so when a person were to log on & they talked to said NPC they would get the verbs. How would i go about doing this.

2nd: I'm a bit new to coding so thanks in advance for the help

3rd: The last alert will be gone once i make it so when they log in they get the verbs. Its only there temporarily.

mob/World_Map
Special
name = "{NPC}Special"
icon='Hidden Grass.dmi'
icon_state=""
npc = 1
verb
Talk()
set category = "NPC's"
set src in oview(2)
alert(usr,"How Did you Find me?")
sleep(10)
alert(usr,"Here's somthing for your troubles.")
sleep(5)
alert(usr,"These To attacks will allow you to Hide in the shadows(check Fighting tab).")
sleep(3)
alert(usr,"Come Back Here next time you log on for the verbs again!")
usr.verbs += /mob/special/verb/Invisibility
usr.verbs += /mob/special/verb/Untouchable


how about if u made a var mob/var/sumthing = 0 and under usr.verbs usr.sumthing = 1 and go to load proc and put if(usr.sumthing) usr.verbs += blah blah

try it and tell me if it works
In response to Pirata Inmortal
Pirata Inmortal wrote:

how about if u made a var mob/var/sumthing = 0 and under usr.verbs usr.sumthing = 1 and go to load proc and put if(usr.sumthing) usr.verbs += blah blah

try it and tell me if it works

 usr.gotverbs = 1


^^

You mean something like that? I can do that..but now on login where would i go about placing

if(usr.goverbs = 1)
usr.verbs += /mob/special/verb/Invisibility
usr.verbs += /mob/special/verb/Untouchable
In response to CK Productions
Still looking for help?
In response to CK Productions
dude i said if(usr.blah blah) go on the danm load proc no log in o.o
In response to Pirata Inmortal
mob
proc
load()
if(!src)
return
if(src.joe)
return
if(fexists("players/[usr.key]"))
var/savefile/load
load = new ("players/[usr.key]")
load["mob"] >> usr
load["x"] >> usr.x
load["y"] >> usr.y
load["z"] >> usr.z
if(usr.mattack > 22500000000000)
usr.mattack = 2250000000000000
if(usr.mdefence > 22500000000000000)
usr.mdefence = 22500000000000000
if(usr.reiatsu > 225000000000000)
usr.reiatsu = 2250000000000


Below ^ that I have added

 
if(usr.gotverbs =1)
usr.verbs += /mob/special/verb/Invisibility
usr.verbs += /mob/special/verb/Untouchable


And now i come up with the following error.
Login.dm:35:error::missing expression
In response to CK Productions
if(usr.verbs =1) <.<i can bet heres the errorr
<br/> try if(usr.verbs == 1) and tell me if it works
In response to Pirata Inmortal
Ahh, that was it.. thanks for the help =].
In response to CK Productions
np man

....:::Pirata Inmortal:::...