- .@guild_id = getcharid(2);
- : means 'delete the line'
+ set .@guild_id, getcharid(2);
+ : means 'add the line'
prontera,150,150,5 script ihjbnik 56,{
.@guild_id = getcharid(2);// <---- REPLACE HERE
if ( !.@guild_id ) {
Like that
prontera,150,150,5 script ihjbnik 56,{
set .@guild_id, getcharid(2);
if ( !.@guild_id ) {
mes "you are not in a guild";
close;
}
else if ( getguildmasterid(.@guild_id) != getcharid(0) ) {
mes "I only talk to the guild master";
close;
}
mes "warp?";
next;
if ( select( "yes", "no" ) -1 ) end;
warpguild "prontera",161,181,.@guild_id;
end;
}
it's hard to help you