Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → A cog prob
A cog prob
2001-06-17, 3:28 PM #1
ok i designed a cog to give some darkside force powers (MOTS) whenever an adjoin is crossed. The problem is it does nothing except teleport the player. this is the cog
# Jedi Knight Cog Script
# change2darkjedi.cog
#
# When a sector is entered then the player will receive weapons and force powers
#
# By: JK2k_Avenger
# This cog is not supported by LEC
symbols

Sector Teleporter linkid=1

thing destination nolink

int Lightsaber=131 local
int FJump=21 local
int FSpeed=22 local
int FSeeing=23 local
int FPush=38 local
int FProject=36 local
int FPull=24 local
int FGrip=31 local
int FSabthrow=37 local
int FFarsight=35 local
int FHealing=25 local
int FPersuasion=26 local
int FBlinding=27 local
int FChainlight=39 local
int FAbsorb=28 local
int FProtect=29 local
int FDestruction=33 local
int FDeadlysight=34 local
int FDefense=19 local

message entered

end

# ..........

code

entered:

# give stuff
SetInv(player, Lightsaber, 1.0);
SetInvAvalable(player, Lightsaber, 1.0);
SetInv(player, FJump, 4.0);
SetInvAvalable(player, FJump, 1.0);
SetInv(player, FSpeed, 4.0);
SetInvAvalable(player, FSpeed, 1.0);
SetInv(player, FSeeing, 4.0);
SetInvAvalable(player, FSeeing, 1.0);
SetInv(player, FGrip, 4.0);
SetInvAvalable(player, FGrip, 1.0);
SetInv(player, FSabthrow, 4.0);
SetInvAvalable(player, FSabthrow, 1.0);
SetInv(player, FChainlight, 4.0);
SetInvAvalable(player, FChainlight, 1.0);
SetInv(player, FDestruction, 4.0);
SetInvAvalable(player, FDestruction, 1.0);
SetInv(player, FDeadlysight, 4.0);
SetInvAvalable(player, FDeadlysight, 1.0);

# teleport player
TeleportThing(GetSourceRef(), destination);

return;

end




------------------
Join JK2k on the zone! go to http://www.jk2k.8k.com
Join JK2k on the zone! go to http://www.jk2k.8k.com
2001-06-18, 1:43 PM #2
Ahem
Join JK2k on the zone! go to http://www.jk2k.8k.com
2001-06-19, 10:13 AM #3
*cough *cough
Join JK2k on the zone! go to http://www.jk2k.8k.com
2001-06-19, 12:46 PM #4
Lol sorry no one replied. Umm, Maybe it's because you didn't tell it what the sender is and what the source is ETC. ????? Not real sure. Not a sohpisticated cogger here. But it's just a suggestion. Plus, all of the symbols are Int's and not surfaces. But I am not quite sure, just thought I would pretend to help. Lata! If you need, I can prolly make you one from scratch. I just don't like reading other peeps work. Confusin. Not enough comments and stuff.
2001-06-19, 8:46 PM #5
Bingo ...

add in the symbols section

thing player local

and then when first entered put ...

player=GetSourceRef();

The reason is will teleport you but not give you force powers is because in the teleport line , you used GetSourceRef() there.

↑ Up to the top!