Jump to content

  •  

han

Member Since 15 Oct 2015
Offline Last Active Oct 24 2015 09:15 PM
-----

Posts I've Made

In Topic: Modified IP Freebies

16 October 2015 - 06:01 PM

okie2. thanks! i'll try it later then!

[font="'lucida sans unicode', 'lucida grande', sans-serif;"]yes, you should try it offline before put it in your online server[/font]

 @Litro I did test it,and I got this error

and when i did  place "//" mes .@rwd[.@i+1] + " x +"+.@rwd[.@i+2]" + getitemname(.@rwd[.@i]);

nothing happen after talking to npc, no items given

[Error]: script error in file 'npc/custom/fatero/npc/ipfreebies.txt' line 23 column 0    Unexpected newline at string.    20:    21:         for ( set .@i, 0; .@i < getarraysize(.@rwd); set .@i, .@i + 3 )    22:                 mes .@rwd[.@i+1] + " x +"+.@rwd[.@i+2]" + getitemname(.@rwd[.@i]);*   23:         close2;        ^    24:         set #NewbieGift, 1;    25:         setd "$" + .@lip$ + "_NG", getd("$" + .@lip$ + "_NG") + 1;    26:

 

mes .@rwd[.@i+1] + " x +"+.@rwd[.@i+2]" + getitemname(.@rwd[.@i]);

to

mes .@rwd[.@i+1] + " x +"+.@rwd[.@i+2]+" "+ getitemname(.@rwd[.@i]);

you forgot the + sign near "

 

 


In Topic: Help fix this script debug town invasion

15 October 2015 - 05:57 PM

i guess that his invek map does exist, but like what dastgir said, the problem is the .town he ddn't change the value of it, it will work if he follows what dastgir recommended to do.

 

 

using this script might help u in future when u decided to add extra/more maps less hassle.

//=========== Town Invasion ==========//=========== Version: 1.0 ===========-	script	towninvasion	-1,{OnClock0800:OnClock1400:OnClock2000:OnClock0200:	.rand$ = .maps$[rand(getarraysize(.maps$))];	announce "A Boss is destroying our "+.rand$+" city! Help us!",bc_all,0x00FFFF;	sleep2 2000;	announce "Hurry before it dominate the whole "+.rand$+"!",bc_all,0x00FFFF;	sleep2 5000;	announce "This monster is quite elusive! So please beat it up!",bc_all,0x00FFFF;	monster .rand$,0,0,"Bring it on!",1502,1,"towninvasion::OnInvadeKill";	end;OnInvadeKill:	announce "Good job, for keeping our city safe!!",bc_all,0x00FFFF;	getitem 7227,10;	end;OnInit:	setarray .maps$[0],"invek"; // Maps	end;}