-
Posts
666 -
Joined
-
Last visited
-
Days Won
4
Community Answers
-
GmOcean's post in escape_sql vise versa? was marked as the answer
Escape SQL, doesn't put anything into SQL, it just enables us, to use Special Characters in our SQL Strings. What your looking for is: query_sql"SELECT Blah blah blah",@var;
Special Characters: Anything not a Letter or a Number.
-
GmOcean's post in request every friday spawn npc was marked as the answer
Umm, this is quite an easy script, you should read the scripting manual, to further your knowledge.
prontera,180,150,4 script NPC NAME 123,{ mes "Do stuff here."; mes "I'm the one that gets hidden, and what not."; close; } - script npc_disabler -1,{ OnFri0000: enablenpc "Above NPC Name"; end; OnSat0000: OnInit: disablenpc "Above NPC NAME"; end; } -
GmOcean's post in request sample countdown was marked as the answer
Here you go.
prontera,180,150,4 script Countdown -1,{ set .name$,strcharinfo(0); set .acctid,getcharid(3); initnpctimer; end; OnTimer20000: mapannounce strnpcinfo(4),"The winner is: "+ .name$ +"",0; stopnpctimer; end; } -
GmOcean's post in Playtime NPC was marked as the answer
OnPCLogin: iLoop: sleep2 3600000; set @playhour,@playhour+1; dispbottom "You have been playing for "+ @playhour +" hour(s)"; goto iLoop; end;
There, that should do what you want... its been nearly 4years since i've been active in the scripting community, but I'm starting to come back, bigger and harder than ever, with the release of several advanced scripts, never before seen. So until then, I appologize if its bugged...
Basically, when a player logs on, it will do nothing for exactly 1 hour, after that, it will announce to the player only, that they have been on for X amount of hours, and will repeat the proccess every hour.