Assalamualaikum .
Page 1 of 1
Assalamualaikum .
erin tolong check script nihh , npe npc poring coin tak keluar eh . hmmm
prontera,141,168,0 shop Cute Headgear 3#hidden 716,5169:50
que_temsky,63,140,3 script Cute Headgear 3#hidden 716,{
callshop "Cute Headgear 3#hidden",1;
end;
OnInit:
npcshopattach "Cute Headgear 3#hidden";
setarray .itemid,5169
setarray .itemcost,50
set .itemuse,7539;
end;
OnBuyItem:
for ( set .@i, 0; .@i < getarraysize(@bought_nameid); set .@i, .@i +1 ) {
if ( @bought_quantity[.@i] == 0 ) end;
for ( set .@j,0; .@j < getarraysize(.itemid); set .@j, .@j +1 ) {
if ( @bought_nameid[.@i] == .itemid[.@j] ) {
set .@itemcost, .@itemcost + .itemcost[.@j];
}
}
}
if ( .@itemcost > countitem(.itemuse) ) {
mes "you don't have enough "+ getitemname(.itemuse);
close;
}
delitem .itemuse, .@itemcost;
for ( set .@i, 0; .@i < getarraysize(@bought_nameid); set .@i, .@i +1 )
getitem @bought_nameid[.@i], @bought_quantity[.@i];
deletearray @bought_nameid[0], 128;
end;
}ought_nameid[0], 128;
end;
}
prontera,141,168,0 shop Cute Headgear 3#hidden 716,5169:50
que_temsky,63,140,3 script Cute Headgear 3#hidden 716,{
callshop "Cute Headgear 3#hidden",1;
end;
OnInit:
npcshopattach "Cute Headgear 3#hidden";
setarray .itemid,5169
setarray .itemcost,50
set .itemuse,7539;
end;
OnBuyItem:
for ( set .@i, 0; .@i < getarraysize(@bought_nameid); set .@i, .@i +1 ) {
if ( @bought_quantity[.@i] == 0 ) end;
for ( set .@j,0; .@j < getarraysize(.itemid); set .@j, .@j +1 ) {
if ( @bought_nameid[.@i] == .itemid[.@j] ) {
set .@itemcost, .@itemcost + .itemcost[.@j];
}
}
}
if ( .@itemcost > countitem(.itemuse) ) {
mes "you don't have enough "+ getitemname(.itemuse);
close;
}
delitem .itemuse, .@itemcost;
for ( set .@i, 0; .@i < getarraysize(@bought_nameid); set .@i, .@i +1 )
getitem @bought_nameid[.@i], @bought_quantity[.@i];
deletearray @bought_nameid[0], 128;
end;
}ought_nameid[0], 128;
end;
}
Ayin- Posts : 1
Join date : 03/06/2012
Age : 31
Location : Kuala Lumpur
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|