Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > NPC Server
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-07-2001, 11:05 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Ok. I give up...

I need help!!!
NPC Code:

if (created) { timeout=0.1; }
if (timeout) {
if (strtofloat(#s(this.mode))==0 || mode==0 || this.mode==0) {
setcharani idle,;
setcharprop #c,No Hit;
}
if (strtofloat(#s(this.mode))==2 || mode==2 || this.mode==2) {
setcharprop #c,Ow;
setcharani dead,;
x-=1;
sleep 2;
x+=1;
setstring this.mode,0;
}
timeout=0.1;
}
if (washit) {
mode=2;
this.mode=2;
setstring this.mode,2;
}
//#CLIENTSIDE
if (created) {
showcharacter;
}
if (washit) {
mode=2;
this.mode=2;
setstring this.mode,2;
}


This is my ATTEMPT at getting the #@$#(@%$# 'washit' flag to work. But, I can't do it! I want to create a baddy that can be fought by multiple people (ie, serverside baddy). Only problem is, the flag 'washit' is clientside! No matter WHAT I try, I cannot get values I set in the clienside portion of the script to "carry over" to the serverside. Anybody know how this is done? It's like the dragon bosses of the bomy moon on New Main. If you hit them, can't everybody see that you damaged it? And the baddies on Providence. I'm pretty sure those can be fought by multiple people. Does ANYBODY UNDERSTAND ME!!??!!??!!?? ......help..... I even tried doing a triggeraction on itself!!!
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
  #2  
Old 10-07-2001, 09:49 PM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
please help
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
  #3  
Old 10-08-2001, 07:47 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Be kind! Help me please!
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
  #4  
Old 10-08-2001, 08:00 AM
Aknts Aknts is offline
Level Designer
Aknts's Avatar
Join Date: Apr 2001
Location: USofA
Posts: 3,340
Aknts will become famous soon enough
Send a message via AIM to Aknts
I thought all baddies could be killed by people and like if one hits everyone sees.
__________________
  #5  
Old 10-08-2001, 08:28 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
No. I want to script my own baddy. But, the flag 'washit' is only clientside. That is my problem!
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
  #6  
Old 10-08-2001, 09:33 AM
LilbrojX LilbrojX is offline
why dont you marry it?
LilbrojX's Avatar
Join Date: Mar 2001
Location: hmm
Posts: 1,465
LilbrojX is on a distinguished road
Send a message via AIM to LilbrojX Send a message via Yahoo to LilbrojX
hmm... maybe you can use trigger actoin, and have a script built into a system npc that triggers an action whenever the player swings his sword... then the baddy has to detect it, and it gets hurt.
__________________

http://www.dictionary.com/search?q=arrogant
kai is an expert on all things arrogant
  #7  
Old 10-08-2001, 11:13 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
It might work, but I dunno... I wish Stefan would actually reply to me =/
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
  #8  
Old 10-08-2001, 11:35 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
*On knees*
HELP ME!!! I feel like breaking things! I am frustrated! Help!!!
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
  #9  
Old 10-08-2001, 08:11 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
OK

simple solution:
do something like
if (created) {
setshape 1,48,48;
}
Otherwise the server-side script
don't know the size of the npc
and asumes that its a hidden npc
(which if course cannot be hit).
You could also do the command
showcharacter on the server-side,
then the server would know its
an npc that has the size of a player
  #10  
Old 10-08-2001, 08:15 PM
revalation revalation is offline
Registered User
revalation's Avatar
Join Date: Mar 2001
Location: a sea of cherry jello.
Posts: 973
revalation is on a distinguished road
Send a message via AIM to revalation Send a message via Yahoo to revalation
Ask and you shall receive, well in most cases.
__________________

kuromu.
  #11  
Old 10-08-2001, 08:18 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Quote:
Originally posted by revalation
Ask and you shall receive, well in most cases.
Yes be lucky to post it some hours before I
am I am going on my monthly forum visit
  #12  
Old 10-08-2001, 09:05 PM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Thanks Stefan! Boy, I am sure stupid this month. 23 more days until I can be un-stupid again
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
  #13  
Old 10-08-2001, 11:08 PM
ZORG1986 ZORG1986 is offline
Registered User
ZORG1986's Avatar
Join Date: Jul 2001
Location: England - Yes thats the small Island in Europe that Ownz you all.
Posts: 783
ZORG1986 is on a distinguished road
Send a message via ICQ to ZORG1986 Send a message via AIM to ZORG1986
LoL, All that stress over a problem that is so simply solved
__________________


Zorg (Era Staff) - Contact : [email protected]
  #14  
Old 10-27-2001, 11:44 AM
Jerrytyrrell64 Jerrytyrrell64 is offline
Registered User
Join Date: Sep 2001
Location: never never land
Posts: 75
Jerrytyrrell64 is on a distinguished road
Talking Scriptors guids- if youve written one or have one or some please reply

if you have a scriptors guide or guides please email it to me at [email protected]
  #15  
Old 10-28-2001, 03:28 PM
StraightHustler StraightHustler is offline
Registered User
Join Date: Oct 2001
Location: Graal Classic
Posts: 304
StraightHustler is on a distinguished road
Stefan always comes through!
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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