hakuren Posted June 8, 2012 Posted June 8, 2012 hello is this possible when an npc set a value example: ------------------------------------------------- ( On The Script ) set hehe,1; and the atcommand will check ------------------------------------------------- ( On The Atcommand Source ) if (hehe == 1) { end; } is this possible? Quote
clydelion Posted June 8, 2012 Posted June 8, 2012 you can do this if(pc_readglobalreg(sd, "hehe") == 1){ end; } Quote
en_dev Posted June 8, 2012 Posted June 8, 2012 hmm, set a value for what ? can you explain more what you're trying to accomplish ? Quote
hakuren Posted June 8, 2012 Author Posted June 8, 2012 you can do this if(pc_readglobalreg(sd, "hehe") == 1){ end; } is this in the npc or in the source code? Quote
hakuren Posted June 8, 2012 Author Posted June 8, 2012 hmm, set a value for what ? can you explain more what you're trying to accomplish ? hmm let me give you an example: when player 1 talk to npc 1 it will set the "set hehe,1;" and the atcommand example atcommand go will check it @go 1 "if ( hehe == 1 ) {" "clif_displaymessage(fd, "Hehe is activated.");" "}" is this possible? source code. wooo it works! thank you clydelion Quote
Question
hakuren
hello is this possible when an npc set a value example:
-------------------------------------------------
( On The Script )
set hehe,1; and the atcommand will check
-------------------------------------------------
( On The Atcommand Source )
if (hehe == 1) {
end;
}
is this possible?
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.