Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Help with event warpper (https://forums.graalonline.com/forums/showthread.php?t=74954)

ManDown 06-29-2007 07:45 AM

Help with event warpper
 
//#//#CLIENTSIDE
if (created || timeout) {
showtext 13,16*17+8,500,Arial,br,Event: #s(server.eventon) - #s
(server.event);
changeimgzoom 120,44;
changeimgvis 13,6;
changeimgcolors 13,3,3,8,6;

function onActionServerSide()
{
if (params[0] == "warp")
setlevel2("onlinestartlocal.graal",30,30);
}

//#CLIENTSIDE
function onMouseDown(mode)
{
if (mode == "right")
triggerserver("gui", this.name, "warp");
}
}

coreys 06-29-2007 08:16 AM

Lol

Twinny 06-29-2007 10:24 AM

You have //#CLIENTSIDE twice although one is //#//#CLIENTSIDE? Having the function onActionServerSide under //#CLIENTSIDE defeats the purpose of having it serverside. Since you have a setlevel2 under clientside, this will also not work.

http://forums.graalonline.com/forums...ad.php?t=69020


All times are GMT +2. The time now is 03:06 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.