Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-02-2005, 11:05 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
ARG it works on levels under 5 but not 5. even though the swor dlimit is set to 8 why even have an option to change the sword limit if it really cannot be changed? X_x
Reply With Quote
  #2  
Old 12-02-2005, 11:55 PM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally Posted by excaliber7388
why even have an option to change the sword limit if it really cannot be changed? X_x
I guess for servers who only want the max sword power to be 1 or 2.
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #3  
Old 12-03-2005, 12:05 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally Posted by napo_p2p
I guess for servers who only want the max sword power to be 1 or 2.
or 3 or 4.
Reply With Quote
  #4  
Old 12-03-2005, 12:30 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally Posted by Lance
or 3 or 4.
I didn't know about 4 :P.

3 is default? or no?
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #5  
Old 12-03-2005, 02:45 PM
sage_scooby sage_scooby is offline
"seized by somnolence"
sage_scooby's Avatar
Join Date: Jan 2003
Location: MN USA
Posts: 605
sage_scooby is on a distinguished road
Quote:
Originally Posted by napo_p2p
I didn't know about 4 :P.

3 is default? or no?
The legendary Golden Sword. Some servers used to use it. 3 just seems to be the commonly used max.
__________________
Aeon!Sage Cypher (Special Aeon Person)

________________________________
Retired Governor Sage Cypher (Crescent Pirates)
________________________________
Contact Info:
-[email protected]
Reply With Quote
  #6  
Old 12-03-2005, 06:27 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
anyway this is what I'm currently using, but i'm having trouble hitting players, hit objects works on players, so i put hitplayer serverside, but that doesn't work either :/ what should i change to make this hit players?
NPC Code:
if(actionserverside){
if(strequals(#p(0),sword)){
for(playerz=1;playerz<=playerscount;playerz++){

for(sword=0;sword<=10;sword++){
if(playerdir==0){hitplayer playerz,strtofloat(#s(clientr.playerswordlevel)),t estx-.09,playery-1.05;}
if(playerdir==2){hitplayer playerz,strtofloat(#s(clientr.playerswordlevel)),t estx-.09,playery+3.5;}
if(playerdir==1){hitplayer playerz,strtofloat(#s(clientr.playerswordlevel)),p layerx-1.5,testy;}
if(playerdir==3){hitplayer playerz,strtofloat(#s(clientr.playerswordlevel)),p layerx+2.9,testy;}
testx=testx+.05;
testy=testy+.05;
}
}
}
}
//#CLIENTSIDE

if(isweapon){
if(keypressed&&strequals(#p(1),S)){
triggeraction 0,0,serverside,-sword,sword;
testx = playerx+.5;
testy = playery+2;
setani sword,;
for(sword=0;sword<=10;sword++){
if(playerdir==0){hitobjects strtofloat(#s(clientr.playerswordlevel)),testx-.09,playery-1.05;}
if(playerdir==2){hitobjects strtofloat(#s(clientr.playerswordlevel)),testx-.09,playery+3.5;}
if(playerdir==1){hitobjects strtofloat(#s(clientr.playerswordlevel)),playerx-1.5,testy;}
if(playerdir==3){hitobjects strtofloat(#s(clientr.playerswordlevel)),playerx+2 .9,testy;}
testx=testx+.05;
testy=testy+.05;
}
}
}

Reply With Quote
  #7  
Old 12-04-2005, 01:20 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by sage_scooby
The legendary Golden Sword. Some servers used to use it. 3 just seems to be the commonly used max.
Old Classic used to have the level 4 (golden) sword, (sword4.gif in your swords folder), but having a sword that hit 2 hearts to people, and killed all baddies in one hit was considered overpowered, I think.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #8  
Old 12-03-2005, 12:06 AM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
prototype of sword (this will replace the current sword's damage system only, it's not perfect, it has trouble hurting baddies and NPCs, and yes, i know it has to have an action serverside for other players i'll add that after i get the bugs wirked out with the baddies. the enemies can get too close and the baddies are hurt when im not facing the right direction ( i know why that happens for the player hitting one)
NPC Code:
//#CLIENTSIDE

if(isweapon){
if(keypressed&&strequals(#p(1),F)){
testx = playerx+.5;
testy = playery+2;
setani sword,;
for (i=1; i<playerscount; i++) {
if (abs(testx-(players[i].x+.5))<=2.5 && abs(testy-(players[i].y+1.5))<=3.5) {
hitplayer i,strtofloat(#s(clientr.playerswordlevel)),players[i].x,players[i].y;
}
if (!abs(testx-(players[i].x+.5))<=3.25 &&
!abs(testy-(players[i].y+1.5))<=3.25) {
if(playerdirection==0){hitobjects strtofloat(#s(clientr.playerswordlevel)),playerx+. 5,playery-1;}
if(playerdirection==2){hitobjects strtofloat(#s(clientr.playerswordlevel)),playerx+. 5,playery+3.25;}
if(playerdirection==1){hitobjects strtofloat(#s(clientr.playerswordlevel)),playerx-3,playery+1.5;}
if(playerdirection==3){hitobjects strtofloat(#s(clientr.playerswordlevel)),playerx+3 ,playery+1.5;}
}
}
}
}

Reply With Quote
Reply


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 05:18 AM.


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