View Full Version : size change help
kimura0715
06-10-2009, 09:02 AM
is there a way to make it so that whoever zones into a certain zone of my choice becomes a certain size of my choice?
Randymarsh9
06-10-2009, 11:00 AM
sub EVENT_ENTERZONE{
quest::playersize(x);
}
put that into the player.pl in that zones quest folder. Obviously, the x represents the size you want them to be.
Randymarsh9
06-10-2009, 11:10 AM
If you want to make it keep the same proportions (as in trolls, barbarians, etc... being tallest) try this.
sub EVENT_ENTERZONE{
$size = $client->GetSize();
quest::playersize($size + 5);
}
So now humans which are normally size 6 would be 11 and gnomes which are like size 3 I believe would be size 8.
kimura0715
06-10-2009, 06:50 PM
thanks alot man!
Randymarsh9
06-10-2009, 06:53 PM
No problem. I hope it works for you.
kimura0715
06-10-2009, 06:54 PM
im a noob with quests...i dont see a player.pl in the quest folders...
also i cant this to work..do you see any mistakes with it.......
#The_Masochist
sub EVENT_SPAWN {
quest::settimer("repeat", 60); // First trigger after 60 seconds, and every 60 seconds after
}
sub EVENT_TIMER {
if ($timer eq "repeat") {
quest::shout("I need pain!!! Please come kick my ass!! It will make you feel good and make me feel wonderful!!");
}
}
Thanks in advance...
Randymarsh9
06-10-2009, 07:03 PM
The player.pl will be in the zone. Like go to quests/poknowledge/player.pl If there isn't a file called player, then just go into notepad and make your own and name it player.pl. I don't see what's wrong with that quest
ChaosSlayerZ
06-10-2009, 08:24 PM
im a noob with quests...i dont see a player.pl in the quest folders...
also i cant this to work..do you see any mistakes with it.......
#The_Masochist
sub EVENT_SPAWN {
quest::settimer("repeat", 60); // First trigger after 60 seconds, and every 60 seconds after
}
sub EVENT_TIMER {
if ($timer eq "repeat") {
quest::shout("I need pain!!! Please come kick my ass!! It will make you feel good and make me feel wonderful!!");
}
}
Thanks in advance...
Are you sure that "//" is a valid coment-out character?
try using # instead. Here is a small overhaul of the script:
sub EVENT_SPAWN
{
quest::settimer("repeat", 60); # First trigger after 60 seconds, and every 60 seconds after
}
sub EVENT_TIMER
{
if ($timer eq "repeat")
{
quest::stoptimer("repeat");
quest::shout("I need pain!!! Please come kick my ass!! It will make you feel good and make me feel wonderful!!");
quest::settimer("repeat", 60);
}
}
kimura0715
06-10-2009, 11:11 PM
thanks CS, i will try that when i get home...
joligario
06-11-2009, 06:04 AM
Timers automatically repeat. So if you want it to fire every 60 seconds, you don't have to stop and then start the timer again.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.