![]() |
NPCS in playerworlds
as you all must know i just started a playerworld, Playerworld13, or soon to be Dark Rival
anyway, all the NPCs are messed up. can someone explain why? |
Can we be a bit more detailed?
|
Why didnt you just keep all this **** in one thread? Christ. If you dont know what your doing you shouldn't of bought a playerworld
|
i do know, and i will point out the fact that this worked flawlesslyy off line, but now the NPCs dont work...ex: Warp Rings do not warp, things do not change zoom or colors, or simply dont follow the script. it shouldn't be so hard just to put this online!
|
Quote:
|
that did answer a few things, but the biggest question,now, would be how do i change the colors /size of the NPCs? setcoloreffect and setzoomeffect don't work :\
|
//#clientside
//#serverside |
Quote:
|
hey i figured something out. its playerenters, compusdied,and the warps that don't work, any suggestions?
|
Hire staff! :-)
|
i now have the npcs working...i feel like a *****...it was so simple =/ anyway, the only problem is that the warps, or links, between the levels don't warp you. some work, some don't =/ i can't figure out whats wrong there yet. if you have suggestions feel free to help ;) thx!
|
if they don't warp then fix them
|
Quote:
If you have more questions please feel free to pm me or just setup a support ticket and appoint the ticket to General Questions or Playerworlds. |
i have re-uploaded the levels and that usually works, havn't ran into trouble since, but it's mostly the warprings that don't work here's the script im using,
(yes i am using the warper gani, i will be removing it though): // NPC made by Excaliber //#CLIENTSIDE if (playerenters||playertouchsme&&!hasweapon(MainTown )) {toweapons Warp Rings/MainTown;hidelocal;} if (weaponfired) {setplayerdir 2;seteffect 0,0,0,0;setani warper,;sleep 1;setani warperend,;setlevel2 main1_darkrival2.nw,5,13;} if (created) {dontblock; } its REALLY simple, so i don't get why it doesn't work online, it's perfect offline :\ |
setlevel2 only works serverside if I remember correctly.
|
|
ok, what should be used instead of setlevel? or setlevel2?
|
if (actionserverside){
if (strequals(#p(0),warp)){ setlevel2 #p(1),#p(2),#p(3); } } //#CLIENTSIDE if (weaponfired){ triggeraction 0,0,serverside,weapon,warp,level,x,y; } |
nope doesn't work theres an error :\
|
Quote:
Also be sure to change weapon in the triggeraction to the name of the weapon this script is in. |
still doesn't work this is the script i am currently using, yes it still has setlevel2 in it, but i can't get the other way to work, whats wrong with it?:
// NPC made by Excaliber (Manager) //#CLIENTSIDE if(playerenters){ toweapons Warp Rings/Warper1; hidelocal} if(weaponfired){ freezeplayer 2; play thunder.wav; setplayerdir 2; setani drwarp,; sleep .1; for (i=0;i<21;i++) { seteffect i/20,i/20,i/20,i/20;sleep .05} {sleep 1; seteffect 0,0,0,0; setlevel2 warper.nw,31,31;} } |
Quote:
|
yes, but i'm not using that script :D it didn't work well anyway or at least i couldn't figure out how to make it work well whatever i use, it should work with seteffect and a gani, any suggestions? (here's the script again )
// NPC made by Excaliber (Manager) //#CLIENTSIDE if(playerenters){ toweapons Warp Rings/Warper1; hidelocal} if(weaponfired){ freezeplayer 2; play thunder.wav; setplayerdir 2; setani drwarp,; sleep .1; for (i=0;i<21;i++) { seteffect i/20,i/20,i/20,i/20;sleep .05} {sleep 1; seteffect 0,0,0,0; setlevel2 warper.nw,31,31;} } |
Quote:
addweapon Warp Rings/Warper1 (From what I understand, addweapon is detected as false offline. Try it on your server.) |
still doesn't help :\ is there another way i could warp a person without setlevel2? i think that might be the problem
|
Quote:
|
nvm i figured it out :\
|
Quote:
|
Quote:
|
Quote:
|
Quote:
As for addweapons, it adds a weapon to a player that is already in the Weapons list. It does not add weapons to the list and then to the player. Also, it will only work on the serverside. |
hey thanks, as you all might know, i made this entire server (well, most of it) without knowledge of online scripting, and, for the most part, you guys have really helped thanks. If what you say is true, i shouldn't have (too ;)) many more errors, and won't be bothering everyone with so many posts :D i should be done some time this month (testing as well) so look foward to the improved Dark Rival, comming soon. hope to see you all there!
|
| All times are GMT +2. The time now is 10:47 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.