ID:143280
 

turf/event_door
var/eventx
var/eventy
var/eventz
icon = 'ED.dmi'
density=1
verb
Event()
set src in oview(1)
if(usr.title=="GM"&&events==0)

var/a = input("What is The event?","a",text)

reward = input("Put how much Gold up?","m",0)
if(usr.gold>=reward)
usr.gold-=(reward)
else
return
var/X = input("Where is The event?","x",0)
var/Y = input("Where is The event?","y",0)
var/Z = input("Where is The event?","z",0)
world<<"[usr] has started the event [a]"
events=1
eventx=(X)
eventy=(Y)
eventz=(Z)
else
if(events==1)
usr.loc=locate((eventx),(eventy),(eventz))
usr.evente=1
else
usr<<"No event."
turf/End/Enter(mob/M)
world<<"Event has ended [usr] has beat it"
usr.gold+=reward
usr.loc=locate(44,55,1)
other()
turf/proc
other(mob/M)
if(usr.evente==1)
usr.loc=locate(44,55,1)
else
return


Problem description: The problem this time is 1)when the event is over everyone inside stays there instead of being warped out 2) the reward is taken from the gm but not given to the winner and 3) the event is not cancelled and eventx eventy eventz are not reseted

No put usr in proc. Ungh.

Lummox JR
In response to Lummox JR
Search that up and you get ~400 matches.