Jump to content
  • 0

is this possible?


Virtue

Question


  • Group:  Members
  • Topic Count:  92
  • Topics Per Day:  0.02
  • Content Count:  354
  • Reputation:   22
  • Joined:  11/17/11
  • Last Seen:  

NPC that grants permission to GMs to have the @item commands.

Description :

NPC that grants GMs to have @item commands for the whole day.

Minimum Level GM required can be adjusted.

every item created by the GMs will be logged at the database.

for example i set the Minimum GM level to 60(Event GMs) a lv60 GM can talk to the npc to have @item command for the whole day, and every item that he creates will be logged, another way to prevent corruption, I guess.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

Logging of atcommand use is already a feature of rA.

conflog_athena.conf

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  189
  • Reputation:   16
  • Joined:  11/20/11
  • Last Seen:  

NPC that grants permission to GMs to have the @item commands.

Description :

NPC that grants GMs to have @item commands for the whole day.

Minimum Level GM required can be adjusted.

every item created by the GMs will be logged at the database.

for example i set the Minimum GM level to 60(Event GMs) a lv60 GM can talk to the npc to have @item command for the whole day, and every item that he creates will be logged, another way to prevent corruption, I guess.

You could create an NPC that would allow that GM to create an item with the function of disabling some items from being in it.

Here's a rough script I made, though it hasn't been tested.

prontera,157,190,4 script Item Creator 793,{
if(getgmlevel()<60) end;
if(Created >= .MaxCreate) end;
mes "Hello GM "+ strcharinfo(0) +"!";
dispbottom "You currently have " +(.MaxCreate - @Created)+" item creations left.";
next;
mes "Please input the Item you would like to create.";
next;
input .@item;
if(.@item == .Blacklist) { 
mes "Sorry, that item has been banned by the creator"; 
close; 
} else {
mes "Your item has been created";
getitem .@item,1;
set @Created, @Created + 1;
close;
}

OnInit:
setarray .@Blacklist,1599,2199;
for ( set .@i, 0; .@i < getarraysize(.@Blacklist); set .@i, .@i +1 )
set .Blacklist, .Blacklist + (.@Blacklist$[.@i]);
set .MaxCreate,15;
end;

OnClock0000:
set Created,0;
end;
}

Edited by iFoxkun
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  92
  • Topics Per Day:  0.02
  • Content Count:  354
  • Reputation:   22
  • Joined:  11/17/11
  • Last Seen:  

NPC that grants permission to GMs to have the @item commands.

Description :

NPC that grants GMs to have @item commands for the whole day.

Minimum Level GM required can be adjusted.

every item created by the GMs will be logged at the database.

for example i set the Minimum GM level to 60(Event GMs) a lv60 GM can talk to the npc to have @item command for the whole day, and every item that he creates will be logged, another way to prevent corruption, I guess.

You could create an NPC that would allow that GM to create an item with the function of disabling some items from being in it.

Here's a rough script I made, though it hasn't been tested.

prontera,157,190,4 script Item Creator 793,{
if(getgmlevel()<60) end;
if(Created >= .MaxCreate) end;
mes "Hello GM "+ strcharinfo(0) +"!";
dispbottom "You currently have " +(.MaxCreate - @Created)+" item creations left.";
next;
mes "Please input the Item you would like to create.";
next;
input .@item;
if(.@item == .Blacklist) {
mes "Sorry, that item has been banned by the creator";
close;
} else {
mes "Your item has been created";
getitem .@item,1;
set @Created, @Created + 1;
close;
}

OnInit:
setarray .@Blacklist,1599,2199;
for ( set .@i, 0; .@i < getarraysize(.@Blacklist); set .@i, .@i +1 )
set .Blacklist, .Blacklist + (.@Blacklist$[.@i]);
set .MaxCreate,15;
end;

OnClock0000:
set Created,0;
end;
}

I will try this later. thanks

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

I wouldn't recommend that script o.o.

It won't work like it is supposed to do.

First:

Temporary Character Variable > @Created

will be reseted on relogin.

Second:

OnClock0000:

set Created,0;

end;

Will not work out, since this would require an player attached > Permanent Character variable

which would be correct.

But in this case an timer would be more wise.

Well I'm not smart in mathematics so I won't make an script for that since it would require to calculate till midnight or like that.

An 1 day delay timer would be easy^^.

Well there are also other ways, but I would have to figure them out first >_>.

Regards,

Chris

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

i dont think this part will work fully in your script...since you are using the array to list all those Blacklisted items..and your script only check for the 1st Blacklisted items....which mean that users allow to create those other blacklisted items...

input .@item;
if(.@item == .Blacklist) { 

anyway..you could try it like this...

input .@item;
for( set .@i,0; .@i < getarraysize( .Blacklist ); set .@i,.@i + 1 ){
if( .@item == .Blacklist[.@i] ){
mes "You cant create this iitems.";
close;
}


ERROR Part

OnClock0000:
set Created,0;
end;
}

this will return you error...coz the script unable to attach a players...that variable is a player variable.....

beside...it doesnt match with other variable you have created inside your script....

setarray .@Blacklist,1599,2199;

this part..i dont think using a .@ variable would be appopriate here...

i guess you should use a NPC scope variable..so that the lists / data saved is not removed upon the conversation between NPC and players is finished.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...