SphereCommunity
Delete char on @logout - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Delete char on @logout (/Thread-Delete-char-on-logout)

Pages: 1 2


Delete char on @logout - Rizz - 01-16-2014 10:32 PM

What's wrong here?

PHP Code:
IF (<region.defname>==a_blabla)&&(<account.plevel> < 2)
    
remove 1
ENDIF 

Also tried with

local.uid=<uid>
serv.uid.<local.uid>.remove 1


RE: Delete char on @logout - Extreme - 01-16-2014 10:50 PM

IF (<region.defname>==a_blabla)&&(<account.plevel> < 2)
serv.log test
ENDIF

If show 'test' on console, the problem is on the remove.
Maybe your condition is not true


RE: Delete char on @logout - darksun84 - 01-16-2014 11:08 PM

I was doing some tests with @LogOut and i noticed that while the trigger is fired
(Trigger @LogOut : used 3 times.) the code(just a serv.log test) inside it is not executed ! Using nightly #1768


RE: Delete char on @logout - Extreme - 01-17-2014 12:31 AM

#1767 working fine.


RE: Delete char on @logout - Shamino - 01-17-2014 02:57 AM

Triggers LOGIN and LOGOUT in the last nightly #1768 dont work, maybe is broken this build.


RE: Delete char on @logout - Staff_Stanic - 01-17-2014 03:17 AM

Try use !STRCMP("<region.defname>","a_blabla")


RE: Delete char on @logout - XuN - 01-17-2014 05:02 AM

Don't panic, I broked the build... its fixed and will work fine again in tomorrow's build Smile


RE: Delete char on @logout - Extreme - 01-17-2014 05:14 AM

Big Grin
5 characters...


RE: Delete char on @logout - amonvangrell - 01-17-2014 02:37 PM

Amazing XuN! :] so fast.


RE: Delete char on @logout - Mordaunt - 01-17-2014 11:03 PM

Don't praise him...

(01-17-2014 05:02 AM)XuN Wrote:  Don't panic, I broked the build...

It's HIS fault! Tongue