Перейти к содержанию

Рекомендуемые сообщения

спасибо вот как я сделал

prontera,150,150,6	script	Обменик	718,{
mes "[Обменик]";
mes "Привет, я могу дать тебе кеш пойнт за простые карты";
mes "Хочеш обменять свой карты?";
menu "Обменять",L,"Нехочу",N;
N:
mes "[Обменик]";
mes "Ландно пока";
close;
L:
set @a, 0;
for(set @i, 4001; @i <= 4453; set @i, @i+1){
if(countitem(@i)){
set @a, @a + countitem(@i);
delitem @i, countitem(@i);
}
}
if(@a){
getitem 7227, @a;
mes "Спасибо";
}
else
mes "У вас нету карт";
close;
}

Молодец

Ссылка на комментарий
Поделиться на другие сайты

Хотел бы добавить функцию в это нпс, что-бы ещё на кеш обменивало, только каким способом не подскажите?

Пробывал

	atcommand strcharinfo(0) + ":@cash, @a;

Изменено пользователем Henk Mudi
Ссылка на комментарий
Поделиться на другие сайты

*atcommand "<command>";

This command will run the given command line exactly as if it was typed in from
the keyboard by the player connected to the invoking character, and that
character belonged to an account which had GM level 99.

// This will ask the invoker for a character name and then use the '@nuke'
// GM command on them, killing them mercilessly.
input @player$;
atcommand "@nuke "+@player$;

This command has a lot of good uses, I am sure you can have some fun with this
one.

Ссылка на комментарий
Поделиться на другие сайты

×
×
  • Создать...
Яндекс.Метрика