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
# 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