помощь сценариев facebook Age of Champions - PullRequest
0 голосов
/ 08 декабря 2011
/declare my id {100003013}
/declare member1 id {100003013}
/declare member2 id {1525608}
/declare member3 id {1256824}
/declare member4 id {1388786}

    |If my id is not equal to member1 id then goto  crank1
    |
    |if my id is equal to player id then go to crank2 

    /if (${my id.NotEqual[${member1 id}]})
        /goto member1 
    /if (${my Id.equal[${member1 id}])
    /goto member2

 /member1
<html>
<body>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=335&sourceu="${member1 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=53&sourceu="${member1 id}"&pag e=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=57&sourceu="${member1 id}"&pag e=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=194&sourceu="${member1 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=196&sourceu="${member1 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%">    </iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=242&sourceu="${member1 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=286&sourceu="${member1 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
</body>
</html>

 /if (${my id.NotEqual[${member2 id}]})
        /goto member2 
    /if (${my Id.equal[${member1 id}])
    /goto member3

/member2
<html>
<body>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=335&sourceu="${member2 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=53&sourceu="${member2 id}"&pag e=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=57&sourceu="${member2 id}"&pag e=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=194&sourceu="${member2 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=196&sourceu="${member2 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=242&sourceu="${member2 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=286&sourceu="${member2 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
</body>
</html>

 /if (${my id.NotEqual[${member1 id}]})
        /goto member3 
    /if (${my Id.equal[${member1 id}])
    /goto member4

/member3
<html>
<body>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=335&sourceu="${member3 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=53&sourceu="${member3 id}"&pag e=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=57&sourceu="${member3 id}"&pag e=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=194&sourceu="${member3 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=196&sourceu="${member3 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=242&sourceu="${member3 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=286&sourceu="${member3 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
</body>
</html>

 /if (${my id.NotEqual[${member1 id}]})
        /goto member4 
    /if (${my Id.equal[${member1 id}])
    /goto end

/member4
<html>
<body>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=335&sourceu="${member4 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=53&sourceu="${member4 id}"&pag e=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=57&sourceu="${member4 id}"&pag e=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=194&sourceu="${member4 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=196&sourceu="${member4 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=242&sourceu="${member4 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=286&sourceu="${member4 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
</body>
</html>

/end

это скрипт для запуска титанов гильдий в игровой век чемпионов на фейсбуке проблема в том, что если вы в списке это не будет работать поэтому я пытаюсь найти способ составить список со всеми участниками и пусть сценарий определит, кем вы являетесь, а не добавит вас в список

Мне бы очень хотелось, чтобы скрипт нашел playerid самостоятельно, чтобы я мог прикрепить это на веб-страницу. так, как он у меня есть, каждый человек должен ввести свой идентификатор в пространство идентификаторов.

Если я использую вход в систему с приложением facebook, это сработает. У меня, вероятно, есть некоторые ошибки синтаксиса тоже. но я могу решить их

1 Ответ

0 голосов
/ 01 января 2012

" Мне бы очень хотелось, чтобы скрипт сам нашел идентификатор игрока, чтобы я мог прикрепить его к веб-странице. Как и у меня, каждый должен ввести свой идентификатор в пространство моих идентификаторов."

Передайте playerid на вашу страницу через строку запроса. Пусть ваш скрипт прочитает значение строки запроса, поместит его в переменную my Id, а затем отобразит их конкретный HTML на основе значения в этой переменной my Id.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...